diff options
Diffstat (limited to 'drivers/net/ethernet/tehuti/tehuti.c')
-rw-r--r-- | drivers/net/ethernet/tehuti/tehuti.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/net/ethernet/tehuti/tehuti.c b/drivers/net/ethernet/tehuti/tehuti.c index e15cc71b826d..571452e786d5 100644 --- a/drivers/net/ethernet/tehuti/tehuti.c +++ b/drivers/net/ethernet/tehuti/tehuti.c | |||
@@ -733,7 +733,7 @@ static void __bdx_vlan_rx_vid(struct net_device *ndev, uint16_t vid, int enable) | |||
733 | * @ndev: network device | 733 | * @ndev: network device |
734 | * @vid: VLAN vid to add | 734 | * @vid: VLAN vid to add |
735 | */ | 735 | */ |
736 | static int bdx_vlan_rx_add_vid(struct net_device *ndev, uint16_t vid) | 736 | static int bdx_vlan_rx_add_vid(struct net_device *ndev, __be16 proto, u16 vid) |
737 | { | 737 | { |
738 | __bdx_vlan_rx_vid(ndev, vid, 1); | 738 | __bdx_vlan_rx_vid(ndev, vid, 1); |
739 | return 0; | 739 | return 0; |
@@ -744,7 +744,7 @@ static int bdx_vlan_rx_add_vid(struct net_device *ndev, uint16_t vid) | |||
744 | * @ndev: network device | 744 | * @ndev: network device |
745 | * @vid: VLAN vid to kill | 745 | * @vid: VLAN vid to kill |
746 | */ | 746 | */ |
747 | static int bdx_vlan_rx_kill_vid(struct net_device *ndev, unsigned short vid) | 747 | static int bdx_vlan_rx_kill_vid(struct net_device *ndev, __be16 proto, u16 vid) |
748 | { | 748 | { |
749 | __bdx_vlan_rx_vid(ndev, vid, 0); | 749 | __bdx_vlan_rx_vid(ndev, vid, 0); |
750 | return 0; | 750 | return 0; |
@@ -1102,10 +1102,9 @@ static void bdx_rx_alloc_skbs(struct bdx_priv *priv, struct rxf_fifo *f) | |||
1102 | dno = bdx_rxdb_available(db) - 1; | 1102 | dno = bdx_rxdb_available(db) - 1; |
1103 | while (dno > 0) { | 1103 | while (dno > 0) { |
1104 | skb = netdev_alloc_skb(priv->ndev, f->m.pktsz + NET_IP_ALIGN); | 1104 | skb = netdev_alloc_skb(priv->ndev, f->m.pktsz + NET_IP_ALIGN); |
1105 | if (!skb) { | 1105 | if (!skb) |
1106 | pr_err("NO MEM: netdev_alloc_skb failed\n"); | ||
1107 | break; | 1106 | break; |
1108 | } | 1107 | |
1109 | skb_reserve(skb, NET_IP_ALIGN); | 1108 | skb_reserve(skb, NET_IP_ALIGN); |
1110 | 1109 | ||
1111 | idx = bdx_rxdb_alloc_elem(db); | 1110 | idx = bdx_rxdb_alloc_elem(db); |
@@ -1149,7 +1148,7 @@ NETIF_RX_MUX(struct bdx_priv *priv, u32 rxd_val1, u16 rxd_vlan, | |||
1149 | priv->ndev->name, | 1148 | priv->ndev->name, |
1150 | GET_RXD_VLAN_ID(rxd_vlan), | 1149 | GET_RXD_VLAN_ID(rxd_vlan), |
1151 | GET_RXD_VTAG(rxd_val1)); | 1150 | GET_RXD_VTAG(rxd_val1)); |
1152 | __vlan_hwaccel_put_tag(skb, GET_RXD_VLAN_TCI(rxd_vlan)); | 1151 | __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), GET_RXD_VLAN_TCI(rxd_vlan)); |
1153 | } | 1152 | } |
1154 | netif_receive_skb(skb); | 1153 | netif_receive_skb(skb); |
1155 | } | 1154 | } |
@@ -2018,12 +2017,12 @@ bdx_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
2018 | * so we can have them same for all ports of the board */ | 2017 | * so we can have them same for all ports of the board */ |
2019 | ndev->if_port = port; | 2018 | ndev->if_port = port; |
2020 | ndev->features = NETIF_F_IP_CSUM | NETIF_F_SG | NETIF_F_TSO | 2019 | ndev->features = NETIF_F_IP_CSUM | NETIF_F_SG | NETIF_F_TSO |
2021 | | NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX | | 2020 | | NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_HW_VLAN_CTAG_RX | |
2022 | NETIF_F_HW_VLAN_FILTER | NETIF_F_RXCSUM | 2021 | NETIF_F_HW_VLAN_CTAG_FILTER | NETIF_F_RXCSUM |
2023 | /*| NETIF_F_FRAGLIST */ | 2022 | /*| NETIF_F_FRAGLIST */ |
2024 | ; | 2023 | ; |
2025 | ndev->hw_features = NETIF_F_IP_CSUM | NETIF_F_SG | | 2024 | ndev->hw_features = NETIF_F_IP_CSUM | NETIF_F_SG | |
2026 | NETIF_F_TSO | NETIF_F_HW_VLAN_TX; | 2025 | NETIF_F_TSO | NETIF_F_HW_VLAN_CTAG_TX; |
2027 | 2026 | ||
2028 | if (pci_using_dac) | 2027 | if (pci_using_dac) |
2029 | ndev->features |= NETIF_F_HIGHDMA; | 2028 | ndev->features |= NETIF_F_HIGHDMA; |