commit | 366bb249b58381bc415a83608859019736b23766 | [log] [tgz] |
---|---|---|
author | Hans Wippel <ndev@hwipl.net> | Tue Feb 25 22:41:21 2020 +0100 |
committer | David S. Miller <davem@davemloft.net> | Wed Feb 26 20:27:06 2020 -0800 |
tree | cb1fe57818629f7b2d6e999af04ea1d717c462a5 | |
parent | 0b7f41f68710ccbf7d029c749616e5d26ae8f74d [diff] |
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>