git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/ice/base: fix build with GCC 11
[dpdk.git]
/
drivers
/
net
/
tap
/
tap_bpf_program.c
diff --git
a/drivers/net/tap/tap_bpf_program.c
b/drivers/net/tap/tap_bpf_program.c
index
2b1dba1
..
20c310e
100644
(file)
--- a/
drivers/net/tap/tap_bpf_program.c
+++ b/
drivers/net/tap/tap_bpf_program.c
@@
-37,7
+37,7
@@
#define KEY_IDX 0
#define BPF_MAP_ID_KEY 1
#define KEY_IDX 0
#define BPF_MAP_ID_KEY 1
-struct
rte_
vlan_hdr {
+struct vlan_hdr {
__be16 proto;
__be16 tci;
};
__be16 proto;
__be16 tci;
};
@@
-75,14
+75,14
@@
struct ipv4_l3_l4_tuple {
__u32 dst_addr;
__u16 dport;
__u16 sport;
__u32 dst_addr;
__u16 dport;
__u16 sport;
-} __
attribute__((packed))
;
+} __
rte_packed
;
struct ipv6_l3_l4_tuple {
__u8 src_addr[16];
__u8 dst_addr[16];
__u16 dport;
__u16 sport;
struct ipv6_l3_l4_tuple {
__u8 src_addr[16];
__u8 dst_addr[16];
__u16 dport;
__u16 sport;
-} __
attribute__((packed))
;
+} __
rte_packed
;
static const __u8 def_rss_key[TAP_RSS_HASH_KEY_SIZE] = {
0xd1, 0x81, 0xc6, 0x2c,
static const __u8 def_rss_key[TAP_RSS_HASH_KEY_SIZE] = {
0xd1, 0x81, 0xc6, 0x2c,
@@
-141,12
+141,12
@@
rss_l3_l4(struct __sk_buff *skb)
/* Get correct proto for 802.1ad */
if (skb->vlan_present && skb->vlan_proto == htons(ETH_P_8021AD)) {
/* Get correct proto for 802.1ad */
if (skb->vlan_present && skb->vlan_proto == htons(ETH_P_8021AD)) {
- if (data + ETH_ALEN * 2 + sizeof(struct
rte_
vlan_hdr) +
+ if (data + ETH_ALEN * 2 + sizeof(struct vlan_hdr) +
sizeof(proto) > data_end)
return TC_ACT_OK;
proto = *(__u16 *)(data + ETH_ALEN * 2 +
sizeof(proto) > data_end)
return TC_ACT_OK;
proto = *(__u16 *)(data + ETH_ALEN * 2 +
- sizeof(struct
rte_
vlan_hdr));
- off += sizeof(struct
rte_
vlan_hdr);
+ sizeof(struct vlan_hdr));
+ off += sizeof(struct vlan_hdr);
}
if (proto == htons(ETH_P_IP)) {
}
if (proto == htons(ETH_P_IP)) {