liquidio: Fix an issue with multiple switchdev enable disables
authorVijaya Mohan Guvva <[email protected]>
Fri, 3 Nov 2017 19:17:44 +0000 (12:17 -0700)
committerDavid S. Miller <[email protected]>
Sat, 4 Nov 2017 00:17:29 +0000 (09:17 +0900)
commitbf5345882bd18bc1b4966d170c0491ebe5c9a7d6
tree9cfffbff75582395a4ca35f6170d797cc74b3330
parentde4cc8bd68c0aefdbbdbdaad28185f1c0ac18442
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 <[email protected]>
Signed-off-by: Satanand Burla <[email protected]>
Signed-off-by: Felix Manlunas <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/cavium/liquidio/octeon_device.c
drivers/net/ethernet/cavium/liquidio/octeon_droq.c
drivers/net/ethernet/cavium/liquidio/octeon_droq.h