summaryrefslogtreecommitdiff
path: root/net/smc/smc_clc.c
diff options
context:
space:
mode:
authorHans Wippel <ndev@hwipl.net>2020-02-26 00:41:21 +0300
committerDavid S. Miller <davem@davemloft.net>2020-02-27 07:27:06 +0300
commit366bb249b58381bc415a83608859019736b23766 (patch)
treecb1fe57818629f7b2d6e999af04ea1d717c462a5 /net/smc/smc_clc.c
parent0b7f41f68710ccbf7d029c749616e5d26ae8f74d (diff)
downloadlinux-366bb249b58381bc415a83608859019736b23766.tar.xz
net/smc: rework peer ID handling
This patch initializes the peer ID to a random instance ID and a zero MAC address. If a RoCE device is in the host, the MAC address part of the peer ID is overwritten with the respective address. Also, a function for checking if the peer ID is valid is added. A peer ID is considered valid if the MAC address part contains a non-zero MAC address. Signed-off-by: Hans Wippel <ndev@hwipl.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc_clc.c')
0 files changed, 0 insertions, 0 deletions