OSDN Git Service

net: mvpp2: Simplify MAC filtering function parameters
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Wed, 7 Mar 2018 14:18:03 +0000 (15:18 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Mar 2018 20:53:39 +0000 (15:53 -0500)
commitce2a27c761acaba032f61f8322ff9447fd084671
tree08647874f9c1e7ad1cd40d79ab1be7b564317c8c
parentdff58a09d77e152056a4803ff89b6ec3fc6c9b2c
net: mvpp2: Simplify MAC filtering function parameters

The mvpp2_prs_mac_da_accept function takes into parameter both the
struct representing the controller and the port id. This is meaningful
when we want to create TCAM entries for non-initialized ports, but in
this case we expect the port to be initialized before starting adding or
removing MAC addresses to the per-port filter.

This commit changes the function so that it takes struct mvpp2_port as
a parameter instead.

Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c