Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compat: erspan: use bitfield instead of mask and offset
Upstream commit: commit c69de58ba84f480879de64571d9dae5102d10ed6 Author: William Tu <[email protected]> Date: Thu Jan 25 13:20:09 2018 -0800 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 <[email protected]> Acked-by: Pravin B Shelar <[email protected]> Signed-off-by: David S. Miller <[email protected]> Folds in the ip_gre portions of this commit. Other portions of this commit are included in a previous patch where it is called out. Cc: William Tu <[email protected]> Signed-off-by: Greg Rose <[email protected]> Signed-off-by: Ben Pfaff <[email protected]> Acked-by: William Tu <[email protected]>
- Loading branch information