Patchwork make gianfar eTSEC vlan hw acceleration work again.

login
register
mail settings
Submitter Staale.Aakermann@kongsberg.com
Date Nov. 28, 2011, 8:56 p.m.
Message ID <BDD883B26EE1104B8A2B30223B09A48C10C724F7@UKGTW-EXM-P03.kda.kongsberg.com>
Download mbox | patch
Permalink /patch/128077/
State Not Applicable
Headers show

Comments

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

--- 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;