diff options
author | Antoine Ténart <antoine.tenart@free-electrons.com> | 2017-08-23 09:46:54 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-24 05:42:09 +0200 |
commit | f9cbe9a556afca9e82df9aebe4412d93769566b5 (patch) | |
tree | 1a0ef5607419df300a725c4b56702b213fb3bd37 /include/net/tso.h | |
parent | ipv4: do metrics match when looking up and deleting a route (diff) | |
download | linux-f9cbe9a556afca9e82df9aebe4412d93769566b5.tar.xz linux-f9cbe9a556afca9e82df9aebe4412d93769566b5.zip |
net: define the TSO header size in net/tso.h
The TSO header size was defined in many drivers. Factorize the code and
define its size in net/tso.h.
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tso.h')
-rw-r--r-- | include/net/tso.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/tso.h b/include/net/tso.h index b7be852bfe9d..9a56c39e6d0a 100644 --- a/include/net/tso.h +++ b/include/net/tso.h @@ -3,6 +3,8 @@ #include <net/ip.h> +#define TSO_HEADER_SIZE 128 + struct tso_t { int next_frag_idx; void *data; |