Skip to content

Commit

Permalink
xsk: fill hole in struct sockaddr_xdp
Browse files Browse the repository at this point in the history
Move the sxdp_flags up, avoiding a hole in the uapi structure.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
  • Loading branch information
Björn Töpel authored and Daniel Borkmann committed May 22, 2018
1 parent 959b71d commit ad75646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/uapi/linux/if_xdp.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

struct sockaddr_xdp {
__u16 sxdp_family;
__u16 sxdp_flags;
__u32 sxdp_ifindex;
__u32 sxdp_queue_id;
__u32 sxdp_shared_umem_fd;
__u16 sxdp_flags;
};

/* XDP socket options */
Expand Down

0 comments on commit ad75646

Please sign in to comment.