make gianfar eTSEC vlan hw acceleration work again.

Submitted by Staale.Aakermann@kongsberg.com on Nov. 28, 2011, 8:56 p.m.

Details

Message ID BDD883B26EE1104B8A2B30223B09A48C10C724F7@UKGTW-EXM-P03.kda.kongsberg.com
State Not Applicable
Headers show

Commit Message

Staale.Aakermann@kongsberg.com Nov. 28, 2011, 8:56 p.m.
Hi.

There seems to be a breakage in the VLAN TX HW acceleration in gianfar (kernel 3.1). It seems like the previous patch that was submitted forgotten to initialize the TX registers.

After this patch, it seems vlan rx/tx for eTSEC works again.

Best regards

Staale Aakermann

Patch hide | download patch | download mbox

--- drivers/net/gianfar.c-orig  2011-11-28 11:04:09.318992481 +0100
+++ drivers/net/gianfar.c       2011-11-28 11:05:43.530990635 +0100
@@ -394,6 +394,9 @@ 
        /* Init rctrl based on our settings */
        gfar_write(&regs->rctrl, rctrl);

+       if (ndev->features & NETIF_F_HW_VLAN_TX)
+               tctrl |= TCTRL_VLINS;
+
        if (ndev->features & NETIF_F_IP_CSUM)
                tctrl |= TCTRL_INIT_CSUM;