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)
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 <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