linux/drivers/net/ethernet/mscc
Vladimir Oltean 98642d1aa2 net: mscc: ocelot: look up the filters in flower_stats() and flower_destroy()
Currently a new filter is created, containing just enough correct
information to be able to call ocelot_vcap_block_find_filter_by_index()
on it.

This will be limiting us in the future, when we'll have more metadata
associated with a filter, which will matter in the stats() and destroy()
callbacks, and which we can't make up on the spot. For example, we'll
start "offloading" some dummy tc filter entries for the TCAM skeleton,
but we won't actually be adding them to the hardware, or to block->rules.
So, it makes sense to avoid deleting those rules too. That's the kind of
thing which is difficult to determine unless we look up the real filter.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-29 18:26:24 -07:00
..
Kconfig net: mscc: ocelot: rethink Kconfig dependencies again 2020-07-16 12:46:00 -07:00
Makefile net: mscc: ocelot: rename ocelot_ace.{c, h} to ocelot_vcap.{c,h} 2020-06-20 17:25:23 -07:00
ocelot_flower.c net: mscc: ocelot: look up the filters in flower_stats() and flower_destroy() 2020-09-29 18:26:24 -07:00
ocelot_io.c net: mscc: ocelot: introduce a new ocelot_target_{read,write} API 2020-09-29 18:26:12 -07:00
ocelot_net.c net: mscc: ocelot: always pass skb clone to ocelot_port_add_txtstamp_skb 2020-09-24 19:47:56 -07:00
ocelot_police.c net: mscc: ocelot: move net_device related functions to ocelot_net.c 2020-06-20 17:25:23 -07:00
ocelot_police.h net: mscc: ocelot: unexpose ocelot_vcap_policer_{add,del} 2020-06-20 17:25:23 -07:00
ocelot_ptp.c net: mscc: ocelot: make ocelot_init_timestamp take a const struct ptp_clock_info 2020-09-18 17:52:40 -07:00
ocelot_qs.h
ocelot_rew.h
ocelot_vcap.c net: mscc: ocelot: look up the filters in flower_stats() and flower_destroy() 2020-09-29 18:26:24 -07:00
ocelot_vcap.h net: mscc: ocelot: add a new ocelot_vcap_block_find_filter_by_id function 2020-09-29 18:26:24 -07:00
ocelot_vsc7514.c net: mscc: ocelot: remove unneeded VCAP parameters for IS2 2020-09-29 18:26:24 -07:00
ocelot.c net: mscc: ocelot: automatically detect VCAP constants 2020-09-29 18:26:24 -07:00
ocelot.h net: mscc: ocelot: convert QSYS_SWITCH_PORT_MODE and SYS_PORT_MODE to regfields 2020-07-13 17:40:01 -07:00