Message ID | 20171205231721.19410-2-jgg@ziepe.ca (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
diff --git a/libibverbs/cmd.c b/libibverbs/cmd.c index 62fcd0e4e2f400..b957550ed6fbdb 100644 --- a/libibverbs/cmd.c +++ b/libibverbs/cmd.c @@ -1844,7 +1844,7 @@ static int ib_spec_to_kern_spec(struct ibv_flow_spec *ib_spec, case IBV_FLOW_SPEC_UDP | IBV_FLOW_SPEC_INNER: kern_spec->tcp_udp.size = sizeof(struct ibv_kern_spec_tcp_udp); memcpy(&kern_spec->tcp_udp.val, &ib_spec->tcp_udp.val, - sizeof(struct ibv_flow_ipv4_filter)); + sizeof(struct ibv_flow_tcp_udp_filter)); memcpy(&kern_spec->tcp_udp.mask, &ib_spec->tcp_udp.mask, sizeof(struct ibv_flow_tcp_udp_filter)); break;