]> git.baikalelectronics.ru Git - kernel.git/commit
liquidio: Fix an issue with multiple switchdev enable disables
authorVijaya Mohan Guvva <vijaya.guvva@cavium.com>
Fri, 3 Nov 2017 19:17:44 +0000 (12:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Nov 2017 00:17:29 +0000 (09:17 +0900)
commit3177dfd210cb71dae99eacfd087d0b738d4120eb
tree9cfffbff75582395a4ca35f6170d797cc74b3330
parenta3016706dfbf445054802750d21d649edada744b
liquidio: Fix an issue with multiple switchdev enable disables

Return success if the same dispatch function is being registered for
a given opcode and subcode, there by allow multiple switchdev enable
and disables.

Signed-off-by: Vijaya Mohan Guvva <vijaya.guvva@cavium.com>
Signed-off-by: Satanand Burla <satananda.burla@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/octeon_device.c
drivers/net/ethernet/cavium/liquidio/octeon_droq.c
drivers/net/ethernet/cavium/liquidio/octeon_droq.h