diff options
Diffstat (limited to 'drivers/net/ethernet/intel/igbvf/netdev.c')
| -rw-r--r-- | drivers/net/ethernet/intel/igbvf/netdev.c | 18 | 
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/ethernet/intel/igbvf/netdev.c b/drivers/net/ethernet/intel/igbvf/netdev.c index d60cd439341..93eb7ee06d3 100644 --- a/drivers/net/ethernet/intel/igbvf/netdev.c +++ b/drivers/net/ethernet/intel/igbvf/netdev.c @@ -116,7 +116,7 @@ static void igbvf_receive_skb(struct igbvf_adapter *adapter,  		else  			vid = le16_to_cpu(vlan) & E1000_RXD_SPC_VLAN_MASK;  		if (test_bit(vid, adapter->active_vlans)) -			__vlan_hwaccel_put_tag(skb, vid); +			__vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vid);  	}  	napi_gro_receive(&adapter->rx_ring->napi, skb); @@ -447,7 +447,6 @@ int igbvf_setup_tx_resources(struct igbvf_adapter *adapter,  	tx_ring->desc = dma_alloc_coherent(&pdev->dev, tx_ring->size,  					   &tx_ring->dma, GFP_KERNEL); -  	if (!tx_ring->desc)  		goto err; @@ -488,7 +487,6 @@ int igbvf_setup_rx_resources(struct igbvf_adapter *adapter,  	rx_ring->desc = dma_alloc_coherent(&pdev->dev, rx_ring->size,  					   &rx_ring->dma, GFP_KERNEL); -  	if (!rx_ring->desc)  		goto err; @@ -1232,7 +1230,8 @@ static void igbvf_set_rlpml(struct igbvf_adapter *adapter)  	e1000_rlpml_set_vf(hw, max_frame_size);  } -static int igbvf_vlan_rx_add_vid(struct net_device *netdev, u16 vid) +static int igbvf_vlan_rx_add_vid(struct net_device *netdev, +				 __be16 proto, u16 vid)  {  	struct igbvf_adapter *adapter = netdev_priv(netdev);  	struct e1000_hw *hw = &adapter->hw; @@ -1245,7 +1244,8 @@ static int igbvf_vlan_rx_add_vid(struct net_device *netdev, u16 vid)  	return 0;  } -static int igbvf_vlan_rx_kill_vid(struct net_device *netdev, u16 vid) +static int igbvf_vlan_rx_kill_vid(struct net_device *netdev, +				  __be16 proto, u16 vid)  {  	struct igbvf_adapter *adapter = netdev_priv(netdev);  	struct e1000_hw *hw = &adapter->hw; @@ -1264,7 +1264,7 @@ static void igbvf_restore_vlan(struct igbvf_adapter *adapter)  	u16 vid;  	for_each_set_bit(vid, adapter->active_vlans, VLAN_N_VID) -		igbvf_vlan_rx_add_vid(adapter->netdev, vid); +		igbvf_vlan_rx_add_vid(adapter->netdev, htons(ETH_P_8021Q), vid);  }  /** @@ -2724,9 +2724,9 @@ static int igbvf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)  			   NETIF_F_RXCSUM;  	netdev->features = netdev->hw_features | -	                   NETIF_F_HW_VLAN_TX | -	                   NETIF_F_HW_VLAN_RX | -	                   NETIF_F_HW_VLAN_FILTER; +	                   NETIF_F_HW_VLAN_CTAG_TX | +	                   NETIF_F_HW_VLAN_CTAG_RX | +	                   NETIF_F_HW_VLAN_CTAG_FILTER;  	if (pci_using_dac)  		netdev->features |= NETIF_F_HIGHDMA;  |