]> asedeno.scripts.mit.edu Git - linux.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)
commit6f2275433a2f4ce5161dbd8a8b24b379d90bc150
treed9aa3a204edd309a35bed159661f11243ec1c27d
parent01db923e83779bf39b15e258a58eb1d0c5167f56
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