Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60513bd8 authored by John Hurley's avatar John Hurley Committed by David S. Miller
Browse files

net: sched: pass extack pointer to block binds and cb registration



Pass the extact struct from a tc qdisc add to the block bind function and,
in turn, to the setup_tc ndo of binding device via the tc_block_offload
struct. Pass this back to any block callback registrations to allow
netlink logging of fails in the bind process.

Signed-off-by: default avatarJohn Hurley <john.hurley@netronome.com>
Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 572de270
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7984,7 +7984,7 @@ static int bnxt_setup_tc_block(struct net_device *dev,
	switch (f->command) {
	case TC_BLOCK_BIND:
		return tcf_block_cb_register(f->block, bnxt_setup_tc_block_cb,
					     bp, bp);
					     bp, bp, f->extack);
	case TC_BLOCK_UNBIND:
		tcf_block_cb_unregister(f->block, bnxt_setup_tc_block_cb, bp);
		return 0;
+1 −1
Original line number Diff line number Diff line
@@ -173,7 +173,7 @@ static int bnxt_vf_rep_setup_tc_block(struct net_device *dev,
	case TC_BLOCK_BIND:
		return tcf_block_cb_register(f->block,
					     bnxt_vf_rep_setup_tc_block_cb,
					     vf_rep, vf_rep);
					     vf_rep, vf_rep, f->extack);
	case TC_BLOCK_UNBIND:
		tcf_block_cb_unregister(f->block,
					bnxt_vf_rep_setup_tc_block_cb, vf_rep);
+1 −1
Original line number Diff line number Diff line
@@ -3016,7 +3016,7 @@ static int cxgb_setup_tc_block(struct net_device *dev,
	switch (f->command) {
	case TC_BLOCK_BIND:
		return tcf_block_cb_register(f->block, cxgb_setup_tc_block_cb,
					     pi, dev);
					     pi, dev, f->extack);
	case TC_BLOCK_UNBIND:
		tcf_block_cb_unregister(f->block, cxgb_setup_tc_block_cb, pi);
		return 0;
+1 −1
Original line number Diff line number Diff line
@@ -7554,7 +7554,7 @@ static int i40e_setup_tc_block(struct net_device *dev,
	switch (f->command) {
	case TC_BLOCK_BIND:
		return tcf_block_cb_register(f->block, i40e_setup_tc_block_cb,
					     np, np);
					     np, np, f->extack);
	case TC_BLOCK_UNBIND:
		tcf_block_cb_unregister(f->block, i40e_setup_tc_block_cb, np);
		return 0;
+1 −1
Original line number Diff line number Diff line
@@ -2926,7 +2926,7 @@ static int i40evf_setup_tc_block(struct net_device *dev,
	switch (f->command) {
	case TC_BLOCK_BIND:
		return tcf_block_cb_register(f->block, i40evf_setup_tc_block_cb,
					     adapter, adapter);
					     adapter, adapter, f->extack);
	case TC_BLOCK_UNBIND:
		tcf_block_cb_unregister(f->block, i40evf_setup_tc_block_cb,
					adapter);
Loading