diff options
author | Cristian Dumitrescu | 2021-01-14 14:33:18 +0000 |
---|---|---|
committer | Tony Nguyen | 2021-02-08 17:19:03 -0800 |
commit | f020fa1a79ff276ff6cc742c71004f2b4ec0b8c2 (patch) | |
tree | e746daeea27088f399bfa3d9ff9e30141e60f446 /net/bridge | |
parent | d4178c31a5622ce972785848637f0910bc00561b (diff) |
i40e: consolidate handling of XDP program actions
Consolidate the actions performed on the packet based on the XDP
program result into a separate function that is easier to read and
maintain. Simplify the i40e_construct_skb_zc function, so that the
input xdp buffer is always freed, regardless of whether the output
skb is successfully created or not. Simplify the behavior of the
i40e_clean_rx_irq_zc function, so that the current packet descriptor
is dropped when function i40_construct_skb_zc returns an error as
opposed to re-processing the same description on the next invocation.
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Tested-by: Kiran Bhandare <kiranx.bhandare@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'net/bridge')
0 files changed, 0 insertions, 0 deletions