Skip to content
Commit 366bb249 authored by Hans Wippel's avatar Hans Wippel Committed by David S. Miller
Browse files

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: default avatarHans Wippel <ndev@hwipl.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0b7f41f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment