Displaying 2 results from an estimated 2 matches for "br_skb_isol".
2023 Apr 06
2
[Bridge] [PATCH net-next] net/bridge: add drop reasons for bridge forwarding
...roup *vg;
+ enum skb_drop_reason reason;
vg = nbp_vlan_group_rcu(p);
- return ((p->flags & BR_HAIRPIN_MODE) || skb->dev != p->dev) &&
- p->state == BR_STATE_FORWARDING && br_allowed_egress(vg, skb) &&
- nbp_switchdev_allowed_egress(p, skb) &&
- !br_skb_isolated(p, skb);
+ if (!(p->flags & BR_HAIRPIN_MODE) && skb->dev == p->dev) {
+ reason = SKB_DROP_REASON_BRIDGE_FWD_SAME_PORT;
+ goto undeliverable;
+ }
+ if (p->state != BR_STATE_FORWARDING) {
+ reason = SKB_DROP_REASON_BRIDGE_NON_FORWARDING_STATE;
+ goto undeliverable;
+ }...
2023 Apr 08
2
[Bridge] [PATCH net-next] net/bridge: add drop reasons for bridge forwarding
...on reason;
>
> vg = nbp_vlan_group_rcu(p);
> - return ((p->flags & BR_HAIRPIN_MODE) || skb->dev != p->dev) &&
> - p->state == BR_STATE_FORWARDING && br_allowed_egress(vg, skb) &&
> - nbp_switchdev_allowed_egress(p, skb) &&
> - !br_skb_isolated(p, skb);
> + if (!(p->flags & BR_HAIRPIN_MODE) && skb->dev == p->dev) {
> + reason = SKB_DROP_REASON_BRIDGE_FWD_SAME_PORT;
> + goto undeliverable;
> + }
> + if (p->state != BR_STATE_FORWARDING) {
> + reason = SKB_DROP_REASON_BRIDGE_NON_FORWARDING_STA...