diff options
author | Jose Abreu <Jose.Abreu@synopsys.com> | 2019-08-07 10:03:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-08 22:20:19 -0700 |
commit | 3cd1cfcba26e2ebbadcd84ba118e785b8963e11b (patch) | |
tree | e071438b38d6048168a9408d5f91cff88e7af753 /drivers/net/ethernet/stmicro/stmmac/hwif.h | |
parent | net: stmmac: selftests: Add RSS test (diff) | |
download | linux-dev-3cd1cfcba26e2ebbadcd84ba118e785b8963e11b.tar.xz linux-dev-3cd1cfcba26e2ebbadcd84ba118e785b8963e11b.zip |
net: stmmac: Implement VLAN Hash Filtering in XGMAC
Implement the VLAN Hash Filtering feature in XGMAC core.
Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/hwif.h')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/hwif.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/hwif.h b/drivers/net/ethernet/stmicro/stmmac/hwif.h index bfe7efee9481..52fc2344b066 100644 --- a/drivers/net/ethernet/stmicro/stmmac/hwif.h +++ b/drivers/net/ethernet/stmicro/stmmac/hwif.h @@ -336,6 +336,9 @@ struct stmmac_ops { /* RSS */ int (*rss_configure)(struct mac_device_info *hw, struct stmmac_rss *cfg, u32 num_rxq); + /* VLAN */ + void (*update_vlan_hash)(struct mac_device_info *hw, u32 hash, + bool is_double); }; #define stmmac_core_init(__priv, __args...) \ @@ -408,6 +411,8 @@ struct stmmac_ops { stmmac_do_void_callback(__priv, mac, set_mac_loopback, __args) #define stmmac_rss_configure(__priv, __args...) \ stmmac_do_callback(__priv, mac, rss_configure, __args) +#define stmmac_update_vlan_hash(__priv, __args...) \ + stmmac_do_void_callback(__priv, mac, update_vlan_hash, __args) /* PTP and HW Timer helpers */ struct stmmac_hwtimestamp { |