network drivers: eliminate unneeded kill_vid code
Many drivers had code that did kill_vid, but they weren't doing vlan filtering. With new API the stub is unneeded unless device sets NETIF_F_HW_VLAN_FILTER. Bad habit: I couldn't resist fixing a couple of nearby style things in acenic, and forcedeth. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
committed by
Jeff Garzik
parent
cb434e380d
commit
25805dcf9d
@@ -4605,12 +4605,7 @@ static void nv_vlan_rx_register(struct net_device *dev, struct vlan_group *grp)
|
||||
writel(np->txrxctl_bits, get_hwbase(dev) + NvRegTxRxControl);
|
||||
|
||||
spin_unlock_irq(&np->lock);
|
||||
};
|
||||
|
||||
static void nv_vlan_rx_kill_vid(struct net_device *dev, unsigned short vid)
|
||||
{
|
||||
/* nothing to do */
|
||||
};
|
||||
}
|
||||
|
||||
/* The mgmt unit and driver use a semaphore to access the phy during init */
|
||||
static int nv_mgmt_acquire_sema(struct net_device *dev)
|
||||
@@ -4956,7 +4951,6 @@ static int __devinit nv_probe(struct pci_dev *pci_dev, const struct pci_device_i
|
||||
np->vlanctl_bits = NVREG_VLANCONTROL_ENABLE;
|
||||
dev->features |= NETIF_F_HW_VLAN_RX | NETIF_F_HW_VLAN_TX;
|
||||
dev->vlan_rx_register = nv_vlan_rx_register;
|
||||
dev->vlan_rx_kill_vid = nv_vlan_rx_kill_vid;
|
||||
}
|
||||
|
||||
np->msi_flags = 0;
|
||||
|
Reference in New Issue
Block a user