]> 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)
commit7dfc1cc642feb26a4d0407ef27c422dbb2f01ea2
treed9aa3a204edd309a35bed159661f11243ec1c27d
parentbf83518ffe90a4a90be34b8882d3af522a8d8990
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