commit | c69de58ba84f480879de64571d9dae5102d10ed6 | [log] [tgz] |
---|---|---|
author | William Tu <u9012063@gmail.com> | Thu Jan 25 13:20:09 2018 -0800 |
committer | David S. Miller <davem@davemloft.net> | Thu Jan 25 21:39:43 2018 -0500 |
tree | d8ba38bd0c49bc0409b91cc6583808ad4e171242 | |
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>