[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1358886835.2892.14.camel@bwh-desktop.uk.solarflarecom.com>
Date: Tue, 22 Jan 2013 20:33:55 +0000
From: Ben Hutchings <bhutchings@...arflare.com>
To: <netdev@...r.kernel.org>
CC: Alexander Duyck <alexander.h.duyck@...el.com>
Subject: [PATCH ethtool] rxclass: Show full 64 bits of user-data in
rxclass_print_nfc_spec_ext()
Previously only the lower 32 bits would be shown.
Signed-off-by: Ben Hutchings <bhutchings@...arflare.com>
---
I just noticed this bug when applying Yan Burman's patch. Untested
since sfc doesn't support this field.
Ben.
rxclass.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/rxclass.c b/rxclass.c
index 1564b62..cd686a3 100644
--- a/rxclass.c
+++ b/rxclass.c
@@ -49,7 +49,7 @@ static void rxclass_print_nfc_spec_ext(struct ethtool_rx_flow_spec *fsp)
tci = ntohs(fsp->h_ext.vlan_tci);
tcim = ntohs(~fsp->m_ext.vlan_tci);
data = (u64)ntohl(fsp->h_ext.data[0]) << 32;
- data = (u64)ntohl(fsp->h_ext.data[1]);
+ data |= (u64)ntohl(fsp->h_ext.data[1]);
datam = (u64)ntohl(~fsp->m_ext.data[0]) << 32;
datam |= (u64)ntohl(~fsp->m_ext.data[1]);
--
1.7.7.6
--
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
--
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