aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/mdio-mux-gpio.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2018-06-26 23:21:33 +0900
committerDavid S. Miller <davem@davemloft.net>2018-06-26 23:21:33 +0900
commita6e65e5d2ca4b1d3ff4ac03e056f82b6854ed50e (patch)
treec0a910ed8cf411968ae1dc86ec9423a7a0c80e4f /drivers/net/phy/mdio-mux-gpio.c
parentMerge branch 'sh_eth-RPADIR-related-clean-ups' (diff)
parentnet: sched: call reoffload op on block callback reg (diff)
downloadlinux-dev-a6e65e5d2ca4b1d3ff4ac03e056f82b6854ed50e.tar.xz
linux-dev-a6e65e5d2ca4b1d3ff4ac03e056f82b6854ed50e.zip
Merge branch 'net-sched-support-replay-of-filter-offload-when-binding-to-block'
Jakub Kicinski says: ==================== net: sched: support replay of filter offload when binding to block This series from John adds the ability to replay filter offload requests when new offload callback is being registered on a TC block. This is most likely to take place for shared blocks today, when a block which already has rules is bound to another interface. Prior to this patch set if any of the rules were offloaded the block bind would fail. A new tcf_proto_op is added to generate a filter-specific offload request. The new 'offload' op is supporting extack from day 0, hence we need to propagate extack to .ndo_setup_tc TC_BLOCK_BIND/TC_BLOCK_UNBIND and through tcf_block_cb_register() to tcf_block_playback_offloads(). The immediate use of this patch set is to simplify life of drivers which require duplicating rules when sharing blocks. Switch drivers (mlxsw) can bind ports to rule lists dynamically, NIC drivers generally don't have that ability and need the rules to be duplicated for each ingress they match on. In code terms this means that switch drivers don't register multiple callbacks for each port. NIC drivers do, and get a separate request and hance rule per-port, as if the block was not shared. The registration fails today, however, if some rules were already present. As John notes in description of patch 7, drivers which register multiple callbacks to shared blocks will likely need to flush the rules on block unbind. This set makes the core not only replay the the offload add requests but also offload remove requests when callback is unregistered. v2: - name parameters in patch 2; - use unsigned int instead of u32 for in_hw_coun; - improve extack message in patch 7. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/mdio-mux-gpio.c')
0 files changed, 0 insertions, 0 deletions