net/sfc: factor out function to get IPv4 packet ID for TSO
authorIvan Malov <ivan.malov@oktetlabs.ru>
Tue, 2 Apr 2019 09:28:42 +0000 (10:28 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 5 Apr 2019 15:45:22 +0000 (17:45 +0200)
commit41ef1ad50a7b9c209347ba7af77173bf71959693
treeb6de0daae2c38d405732e3d5c90ac264c3daed87
parent9b70500cf2233b3aecea149f5bb37790464ff6c9
net/sfc: factor out function to get IPv4 packet ID for TSO

As a result, code duplication will be avoided in the current
TSO implementations (EFX and EF10 native). The future patch to
add support for tunnel TSO will also reuse the new function.

Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/sfc_ef10_tx.c
drivers/net/sfc/sfc_tso.c
drivers/net/sfc/sfc_tso.h