diff options
author | Ilya Nelkenbaum <ilyan@mellanox.com> | 2015-02-05 13:53:48 +0200 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2015-02-17 12:34:52 -0800 |
commit | c2be9dc0e0fa59cc43c2c7084fc42b430809a0fe (patch) | |
tree | b110f2ddd783a48a4b00e8fae4c600c1989aa92d /drivers/usb/core/usb.c | |
parent | bfa76d49576599a4b9f9b7a71f23d73d6dcff735 (diff) |
IB/core: When marshaling ucma path from user-space, clear unused fields
When marshaling a user path to the kernel struct ib_sa_path, we need
to zero smac and dmac and set the vlan id to the "no vlan" value.
This is to ensure that Ethernet attributes are not used with
InfiniBand QPs.
Fixes: dd5f03beb4f7 ("IB/core: Ethernet L2 attributes in verbs/cm structures")
Signed-off-by: Ilya Nelkenbaum <ilyan@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/usb/core/usb.c')
0 files changed, 0 insertions, 0 deletions