diff options
author | Daniel Axtens <dja@axtens.net> | 2018-01-31 14:15:33 +1100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-01 09:36:03 -0500 |
commit | 2b16f048729bf35e6c28a40cbfad07239f9dcd90 (patch) | |
tree | fc9e536298bba6872e9f9b8f25359c7afa42c4ea /drivers/net | |
parent | Merge tag 'docs-4.16' of git://git.lwn.net/linux (diff) | |
download | linux-dev-2b16f048729bf35e6c28a40cbfad07239f9dcd90.tar.xz linux-dev-2b16f048729bf35e6c28a40cbfad07239f9dcd90.zip |
net: create skb_gso_validate_mac_len()
If you take a GSO skb, and split it into packets, will the MAC
length (L2 + L3 + L4 headers + payload) of those packets be small
enough to fit within a given length?
Move skb_gso_mac_seglen() to skbuff.h with other related functions
like skb_gso_network_seglen() so we can use it, and then create
skb_gso_validate_mac_len to do the full calculation.
Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions