]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnx2x: add vlan filtering offload
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Wed, 29 Jul 2015 12:52:46 +0000 (15:52 +0300)
committerDan Duval <dan.duval@oracle.com>
Mon, 19 Oct 2015 22:09:22 +0000 (18:09 -0400)
commit116df6ef9323676d189af5289d25ec3e70ee7b2d
tree22d1a903e8d929fe1e2653db387f59a73f320938
parent391e7381959439713713879430d35a547eef851a
bnx2x: add vlan filtering offload

Orabug: 22066196

Current driver always uses vlan-promisc mode, i.e., it receives both
tagged and untagged traffic and lets the network stack drop packets
tagged with unrequested vlan tags.

This patch implements vlan-filtering offload in the driver -
Unless explicitly configured to promisc mode, only untagged packets or
packets tagged with requested vlans would reach the Rx flow.

Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 05cc5a39ddb74dd81a716a45e67b938d8ebed463)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.h