summaryrefslogtreecommitdiff
path: root/samples/bpf/sock_flags_kern.c
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-07-04 08:50:30 +0300
committerJason Gunthorpe <jgg@mellanox.com>2018-07-04 13:47:01 -0600
commit540cd69209682a351ab76b83b85ea856b8192720 (patch)
treed5f6d2e7b23ec21c5ffde614fc5eb49f7f1e7712 /samples/bpf/sock_flags_kern.c
parent83bb4442330f035bd68ec5d2f5b87bfef1c1a4ab (diff)
RDMA/uverbs: Use UVERBS_ATTR_MIN_SIZE correctly and uniformly
This newer macro allows specifying a lower bound on the accepted size, and has an 'unlimited' upper bound. Due to this it never checks for trailing zeroing so it doesn't make any sense to combine it with MIN_SZ_OR_ZERO, so drop MIN_SZ_OR_ZERO when they are used together There were a couple of places that open coded this pattern, switch them to use the clearer UVERBS_ATTR_MIN_SIZE for clarity. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to 'samples/bpf/sock_flags_kern.c')
0 files changed, 0 insertions, 0 deletions