lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <OF57143EF9.D6B06D40-ON8525788C.0046E788-8525788C.0046E78E@BeldenCDT.com>
Date:	Tue, 10 May 2011 08:54:28 -0400
From:	Sebastian.Poehn@...den.com
To:	"netdev" <netdev@...r.kernel.org>
Subject: [PATCH 2/3] RFC gianfar: add rx_ntuple feature

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 <sebastian.poehn@...den.com>
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.

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ