DORMANTno replies

[PATCH 2/3] RFC gianfar: add rx_ntuple feature

From: <hidden>
Date: 2011-05-10 13:09:36

This part sets the flags for ethtool and does primary hardware checking.
--- gianfar.c.orig    2011-05-10 11:08:13.573744000 +0200
+++ gianfar.c    2011-05-10 11:22:07.865744495 +0200
@@ -751,7 +751,8 @@ static int gfar_of_init(struct platform_
             FSL_GIANFAR_DEV_HAS_VLAN |
             FSL_GIANFAR_DEV_HAS_MAGIC_PACKET |
             FSL_GIANFAR_DEV_HAS_EXTENDED_HASH |
-            FSL_GIANFAR_DEV_HAS_TIMER;
+            FSL_GIANFAR_DEV_HAS_TIMER |
+            FSL_GIANFAR_DEV_HAS_RX_FILER;
 
     ctype = of_get_property(np, "phy-connection-type", NULL);
 
@@ -1042,6 +1043,9 @@ static int gfar_probe(struct platform_de
     if (priv->device_flags & FSL_GIANFAR_DEV_HAS_VLAN)
         dev->features |= NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX;
 
+    if (priv->device_flags & FSL_GIANFAR_DEV_HAS_RX_FILER)
+        dev->features |= NETIF_F_NTUPLE;
+
     if (priv->device_flags & FSL_GIANFAR_DEV_HAS_EXTENDED_HASH) {
         priv->extended_hash = 1;
         priv->hash_width = 9;
@@ -1151,9 +1155,8 @@ static int gfar_probe(struct platform_de
         priv->rx_queue[i]->rxic = DEFAULT_RXIC;
     }
 
-    /* enable filer if using multiple RX queues*/
-    if(priv->num_rx_queues > 1)
-        priv->rx_filer_enable = 1;
+    /* always enable rx filer*/
+    priv->rx_filer_enable = 1;
     /* Enable most messages by default */
     priv->msg_enable = (NETIF_MSG_IFUP << 1 ) - 1;
 
Signed-off-by: Sebastian Poehn <redacted>
DISCLAIMER:

Privileged and/or Confidential information may be contained in this
message. If you are not the addressee of this message, you may not
copy, use or deliver this message to anyone. In such event, you
should destroy the message and kindly notify the sender by reply
e-mail. It is understood that opinions or conclusions that do not
relate to the official business of the company are neither given
nor endorsed by the company.

Thank You.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help