]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: stmmac: Add option for VLAN filter fail queue enable
authorChuah, Kim Tatt <kim.tatt.chuah@intel.com>
Fri, 25 Sep 2020 09:40:41 +0000 (17:40 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Sep 2020 23:48:33 +0000 (16:48 -0700)
commite0f9956a3862b32ad73869a8e52a33c84aafa46f
tree16a617dc824e2a8953ba9387aca7857b6f2714cb
parent17705434f3e6966b253f72ca6cfbc2d0d2142ead
net: stmmac: Add option for VLAN filter fail queue enable

Add option in plat_stmmacenet_data struct to enable VLAN Filter Fail
Queuing. This option allows packets that fail VLAN filter to be routed
to a specific Rx queue when Receive All is also set.

When this option is enabled:
- Enable VFFQ only when entering promiscuous mode, because Receive All
  will pass up all rx packets that failed address filtering (similar to
  promiscuous mode).
- VLAN-promiscuous mode is never entered to allow rx packet to fail VLAN
  filters and get routed to selected VFFQ Rx queue.

Reviewed-by: Voon Weifeng <weifeng.voon@intel.com>
Reviewed-by: Ong Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: Chuah, Kim Tatt <kim.tatt.chuah@intel.com>
Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/common.h
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
drivers/net/ethernet/stmicro/stmmac/dwmac4.h
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
drivers/net/ethernet/stmicro/stmmac/dwmac5.h
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
include/linux/stmmac.h