diff options
author | William Tu <u9012063@gmail.com> | 2018-01-25 13:20:09 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-25 21:39:43 -0500 |
commit | c69de58ba84f480879de64571d9dae5102d10ed6 (patch) | |
tree | d8ba38bd0c49bc0409b91cc6583808ad4e171242 /net/ipv4/xfrm4_mode_beet.c | |
parent | b89d06ce58f1ebd43d4c491da4a9a9f0f29787d6 (diff) |
net: erspan: use bitfield instead of mask and offset
Originally the erspan fields are defined as a group into a __be16 field,
and use mask and offset to access each field. This is more costly due to
calling ntohs/htons. The patch changes it to use bitfields.
Signed-off-by: William Tu <u9012063@gmail.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/xfrm4_mode_beet.c')
0 files changed, 0 insertions, 0 deletions