diff options
author | Michael Chan <michael.chan@broadcom.com> | 2016-07-25 12:33:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-25 21:43:31 -0700 |
commit | a54c4d74989b769014b359e5b66f3e571d903d25 (patch) | |
tree | 2bb328995f05b20153327ea64a48f678a32b7b59 /drivers/net/ethernet/broadcom/bnxt/bnxt.h | |
parent | qed: Fix setting/clearing bit in completion bitmap (diff) | |
download | linux-dev-a54c4d74989b769014b359e5b66f3e571d903d25.tar.xz linux-dev-a54c4d74989b769014b359e5b66f3e571d903d25.zip |
bnxt_en: Improve ntuple filters by checking destination MAC address.
Include the destination MAC address in the ntuple filter structure. The
current code assumes that the destination MAC address is always the MAC
address of the NIC. This may not be true if there are macvlans, for
example. Add destination MAC address checking and configure the filter
correctly using the correct index for the destination MAC address.
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnxt/bnxt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.h b/drivers/net/ethernet/broadcom/bnxt/bnxt.h index 5307a2ee6a05..23e04a6142fb 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.h +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.h @@ -785,10 +785,12 @@ struct bnxt_pf_info { struct bnxt_ntuple_filter { struct hlist_node hash; + u8 dst_mac_addr[ETH_ALEN]; u8 src_mac_addr[ETH_ALEN]; struct flow_keys fkeys; __le64 filter_id; u16 sw_id; + u8 l2_fltr_idx; u16 rxq; u32 flow_id; unsigned long state; |