[PATCH] make gianfar eTSEC vlan hw acceleration work again.

DORMANTno replies

From: <hidden>
Date: 2011-11-28 21:01:23

Hi.

There seems to be a breakage in the VLAN TX HW acceleration in gianfar (ker=
nel 3.1). It seems like the previous patch that was submitted forgotten to =
initialize the TX registers.
--- 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 |=3D TCTRL_VLINS;
+
        if (ndev->features & NETIF_F_IP_CSUM)
                tctrl |=3D TCTRL_INIT_CSUM;
After this patch, it seems vlan rx/tx for eTSEC works again.

Best regards

Staale Aakermann

________________________________

CONFIDENTIALITY
This e-mail and any attachment contain KONGSBERG information which may be p=
roprietary, confidential or subject to export regulations, and is only mean=
t for the intended recipient(s). Any disclosure, copying, distribution or u=
se is prohibited, if not otherwise explicitly agreed with KONGSBERG. If rec=
eived in error, please delete it immediately from your system and notify th=
e sender properly.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help