mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
net: txgbe: Implement vlan add and remove ops
txgbe add ndo_vlan_rx_add_vid and ndo_vlan_rx_kill_vid. Signed-off-by: Mengyuan Lou <mengyuanlou@net-swift.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
6670f1ece2
commit
7df4af51de
2 changed files with 5 additions and 0 deletions
|
@ -258,6 +258,7 @@ static void txgbe_reset(struct wx *wx)
|
||||||
if (err != 0)
|
if (err != 0)
|
||||||
wx_err(wx, "Hardware Error: %d\n", err);
|
wx_err(wx, "Hardware Error: %d\n", err);
|
||||||
|
|
||||||
|
wx_start_hw(wx);
|
||||||
/* do not flush user set addresses */
|
/* do not flush user set addresses */
|
||||||
memcpy(old_addr, &wx->mac_table[0].addr, netdev->addr_len);
|
memcpy(old_addr, &wx->mac_table[0].addr, netdev->addr_len);
|
||||||
wx_flush_sw_mac_table(wx);
|
wx_flush_sw_mac_table(wx);
|
||||||
|
@ -330,6 +331,7 @@ static int txgbe_sw_init(struct wx *wx)
|
||||||
wx->mac.max_tx_queues = TXGBE_SP_MAX_TX_QUEUES;
|
wx->mac.max_tx_queues = TXGBE_SP_MAX_TX_QUEUES;
|
||||||
wx->mac.max_rx_queues = TXGBE_SP_MAX_RX_QUEUES;
|
wx->mac.max_rx_queues = TXGBE_SP_MAX_RX_QUEUES;
|
||||||
wx->mac.mcft_size = TXGBE_SP_MC_TBL_SIZE;
|
wx->mac.mcft_size = TXGBE_SP_MC_TBL_SIZE;
|
||||||
|
wx->mac.vft_size = TXGBE_SP_VFT_TBL_SIZE;
|
||||||
wx->mac.rx_pb_size = TXGBE_SP_RX_PB_SIZE;
|
wx->mac.rx_pb_size = TXGBE_SP_RX_PB_SIZE;
|
||||||
wx->mac.tx_pb_size = TXGBE_SP_TDB_PB_SZ;
|
wx->mac.tx_pb_size = TXGBE_SP_TDB_PB_SZ;
|
||||||
|
|
||||||
|
@ -495,6 +497,8 @@ static const struct net_device_ops txgbe_netdev_ops = {
|
||||||
.ndo_validate_addr = eth_validate_addr,
|
.ndo_validate_addr = eth_validate_addr,
|
||||||
.ndo_set_mac_address = wx_set_mac,
|
.ndo_set_mac_address = wx_set_mac,
|
||||||
.ndo_get_stats64 = wx_get_stats64,
|
.ndo_get_stats64 = wx_get_stats64,
|
||||||
|
.ndo_vlan_rx_add_vid = wx_vlan_rx_add_vid,
|
||||||
|
.ndo_vlan_rx_kill_vid = wx_vlan_rx_kill_vid,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -77,6 +77,7 @@
|
||||||
#define TXGBE_SP_MAX_RX_QUEUES 128
|
#define TXGBE_SP_MAX_RX_QUEUES 128
|
||||||
#define TXGBE_SP_RAR_ENTRIES 128
|
#define TXGBE_SP_RAR_ENTRIES 128
|
||||||
#define TXGBE_SP_MC_TBL_SIZE 128
|
#define TXGBE_SP_MC_TBL_SIZE 128
|
||||||
|
#define TXGBE_SP_VFT_TBL_SIZE 128
|
||||||
#define TXGBE_SP_RX_PB_SIZE 512
|
#define TXGBE_SP_RX_PB_SIZE 512
|
||||||
#define TXGBE_SP_TDB_PB_SZ (160 * 1024) /* 160KB Packet Buffer */
|
#define TXGBE_SP_TDB_PB_SZ (160 * 1024) /* 160KB Packet Buffer */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue