summaryrefslogtreecommitdiff
path: root/ethtool.c
diff options
context:
space:
mode:
authorSebastian Pöhn <s.poehn@stud.hs-esslingen.de>2011-05-23 15:53:55 +0200
committerBen Hutchings <bhutchings@solarflare.com>2011-06-01 20:51:59 +0100
commitaa41a267380338c446e8425a5b425c5dde244bf0 (patch)
treea35bbe036ced0bcc533b6cb1d6ede9bd13a97592 /ethtool.c
parent489980442f925803df51849967f19a0454e5673c (diff)
downloadethtool-aa41a267380338c446e8425a5b425c5dde244bf0.tar.gz
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 <sebastian.poehn@belden.com> [bwh: Fixed spacing] Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'ethtool.c')
-rw-r--r--ethtool.c3
1 files changed, 3 insertions, 0 deletions
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;
}