Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: net/bluetooth/l2cap_core.c
This commit is contained in:
@@ -2287,6 +2287,23 @@ static int gfar_set_mac_address(struct net_device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Check if rx parser should be activated */
|
||||
void gfar_check_rx_parser_mode(struct gfar_private *priv)
|
||||
{
|
||||
struct gfar __iomem *regs;
|
||||
u32 tempval;
|
||||
|
||||
regs = priv->gfargrp[0].regs;
|
||||
|
||||
tempval = gfar_read(®s->rctrl);
|
||||
/* If parse is no longer required, then disable parser */
|
||||
if (tempval & RCTRL_REQ_PARSER)
|
||||
tempval |= RCTRL_PRSDEP_INIT;
|
||||
else
|
||||
tempval &= ~RCTRL_PRSDEP_INIT;
|
||||
gfar_write(®s->rctrl, tempval);
|
||||
}
|
||||
|
||||
|
||||
/* Enables and disables VLAN insertion/extraction */
|
||||
static void gfar_vlan_rx_register(struct net_device *dev,
|
||||
@@ -2323,12 +2340,9 @@ static void gfar_vlan_rx_register(struct net_device *dev,
|
||||
/* Disable VLAN tag extraction */
|
||||
tempval = gfar_read(®s->rctrl);
|
||||
tempval &= ~RCTRL_VLEX;
|
||||
/* If parse is no longer required, then disable parser */
|
||||
if (tempval & RCTRL_REQ_PARSER)
|
||||
tempval |= RCTRL_PRSDEP_INIT;
|
||||
else
|
||||
tempval &= ~RCTRL_PRSDEP_INIT;
|
||||
gfar_write(®s->rctrl, tempval);
|
||||
|
||||
gfar_check_rx_parser_mode(priv);
|
||||
}
|
||||
|
||||
gfar_change_mtu(dev, dev->mtu);
|
||||
|
Reference in New Issue
Block a user