diff options
author | John Hurley <john.hurley@netronome.com> | 2019-06-08 17:48:03 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-09 20:08:09 -0700 |
commit | dce5ccccd1231c6eaec5ede80bce85f2ae536826 (patch) | |
tree | a75ac380719f0eed7ba8b0fb231f879a071a17fd /fs/nfsd/blocklayoutxdr.c | |
parent | fcc2202a9d6e4578aca1af4f1954f61dc986ef74 (diff) | |
download | linux-dce5ccccd1231c6eaec5ede80bce85f2ae536826.tar.bz2 |
nfp: ensure skb network header is set for packet redirect
Packets received at the NFP driver may be redirected to egress of another
netdev (e.g. in the case of OvS internal ports). On the egress path, some
processes, like TC egress hooks, may expect the network header offset
field in the skb to be correctly set. If this is not the case there is
potential for abnormal behaviour and even the triggering of BUG() calls.
Set the skb network header field before the mac header pull when doing a
packet redirect.
Fixes: 27f54b582567 ("nfp: allow fallback packets from non-reprs")
Signed-off-by: John Hurley <john.hurley@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/nfsd/blocklayoutxdr.c')
0 files changed, 0 insertions, 0 deletions