Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ip6erspan: improve error handling for erspan version number.
Upstream commit: commit d6aa71197ffcb68850bfebfc3fc160abe41df53b Author: William Tu <[email protected]> Date: Fri Mar 9 07:34:41 2018 -0800 ip6erspan: improve error handling for erspan version number. When users fill in incorrect erspan version number through the struct erspan_metadata uapi, current code skips pushing the erspan header but continue pushing the gre header, which is incorrect. The patch fixes it by returning error. Signed-off-by: William Tu <[email protected]> Signed-off-by: David S. Miller <[email protected]> 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