diff options
author | Sebastian Pöhn <s.poehn@stud.hs-esslingen.de> | 2011-05-23 15:53:55 +0200 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2011-06-01 20:51:59 +0100 |
commit | aa41a267380338c446e8425a5b425c5dde244bf0 (patch) | |
tree | a35bbe036ced0bcc533b6cb1d6ede9bd13a97592 /ethtool.c | |
parent | 489980442f925803df51849967f19a0454e5673c (diff) | |
download | ethtool-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |