• Hans Wippel's avatar
    net/smc: rework peer ID handling · 366bb249
    Hans Wippel authored
    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>
    366bb249
smc_ib.c 16.8 KB