From aa41a267380338c446e8425a5b425c5dde244bf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20P=C3=B6hn?= Date: Mon, 23 May 2011 15:53:55 +0200 Subject: ethtool: mask out FLOW_EXT The FLOW_EXT bit must be masked out. Otherwise if e.g. vlan is set a driver receiving the ntuple may not detect the flow_type correctly! Signed-off-by: Sebastian Poehn [bwh: Fixed spacing] Signed-off-by: Ben Hutchings --- ethtool.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ethtool.c') diff --git a/ethtool.c b/ethtool.c index 34fe107..edfbe3d 100644 --- a/ethtool.c +++ b/ethtool.c @@ -3135,6 +3135,9 @@ static int flow_spec_to_ntuple(struct ethtool_rx_flow_spec *fsp, } } + /* Mask out the extended bit, because ntuple does not know it! */ + ntuple->flow_type &= ~FLOW_EXT; + return 0; } -- cgit v1.2.1