diff options
author | Wong Vee Khee <vee.khee.wong@intel.com> | 2020-03-30 23:53:57 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-30 10:36:44 -0700 |
commit | ed64639bc1e0899d89120b82af52e74fcbeebf6a (patch) | |
tree | 4160a5c42d5bfe6af489a0da871ee5395d3e7aeb /drivers/net/ethernet/stmicro/stmmac/common.h | |
parent | Merge branch 'crypto-chelsio-Fixes-issues-during-chcr-driver-registration' (diff) | |
download | linux-dev-ed64639bc1e0899d89120b82af52e74fcbeebf6a.tar.xz linux-dev-ed64639bc1e0899d89120b82af52e74fcbeebf6a.zip |
net: stmmac: Add support for VLAN Rx filtering
Add support for VLAN ID-based filtering by the MAC controller for MAC
drivers that support it. Only the 12-bit VID field is used.
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: Wong Vee Khee <vee.khee.wong@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/common.h')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h index 386663208c23..6208a68a331d 100644 --- a/drivers/net/ethernet/stmicro/stmmac/common.h +++ b/drivers/net/ethernet/stmicro/stmmac/common.h @@ -471,6 +471,8 @@ struct mac_device_info { unsigned int pmt; unsigned int ps; unsigned int xlgmac; + unsigned int num_vlan; + u32 vlan_filter[32]; }; struct stmmac_rx_routing { |