]> git.baikalelectronics.ru Git - kernel.git/commit
ibmveth: Detect unsupported packets before sending to the hypervisor
authorCris Forno <cforno12@linux.vnet.ibm.com>
Wed, 13 Nov 2019 21:06:16 +0000 (15:06 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Nov 2019 01:59:48 +0000 (17:59 -0800)
commitef458c8fee314f42f0a6b906275b923ee5535984
treed9aa3a204edd309a35bed159661f11243ec1c27d
parent009c5b2efbfd09e39b95e96011029e4d25864c26
ibmveth: Detect unsupported packets before sending to the hypervisor

Currently, when ibmveth receive a loopback packet, it reports an
ambiguous error message "tx: h_send_logical_lan failed with rc=-4"
because the hypervisor rejects those types of packets. This fix
detects loopback packet and assures the source packet's MAC address
matches the driver's MAC address before transmitting to the
hypervisor.

Signed-off-by: Cris Forno <cforno12@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmveth.c