commit | 13df4c666c551bba97618d7e3908c2ecd03ceefb | [log] [tgz] |
---|---|---|
author | Jakub Kicinski <jakub.kicinski@netronome.com> | Thu Nov 03 17:12:05 2016 +0000 |
committer | David S. Miller <davem@davemloft.net> | Fri Nov 04 14:56:15 2016 -0400 |
tree | 53c1dfaa7b7a959317373286a6465291a3ad2d8a | |
parent | 164d1e9e5d5235c44851e606d01dd699d8bb15d3 [diff] |
nfp: reorganize nfp_net_rx() to get packet offsets early Calculate packet offsets early in nfp_net_rx() so that we will be able to use them in upcoming XDP handler. While at it move relevant variables into the loop scope. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>