Lines Matching refs:br_port

48 		return repr->br_port;  in ice_eswitch_br_netdev_to_port()
63 return pf->br_port; in ice_eswitch_br_netdev_to_port()
389 struct ice_esw_br_port *br_port, in ice_eswitch_br_fdb_entry_create() argument
393 struct ice_esw_br *bridge = br_port->bridge; in ice_eswitch_br_fdb_entry_create()
408 vlan = ice_esw_br_port_vlan_lookup(bridge, br_port->vsi_idx, in ice_eswitch_br_fdb_entry_create()
427 flow = ice_eswitch_br_flow_create(dev, hw, br_port->vsi_idx, in ice_eswitch_br_fdb_entry_create()
428 br_port->type, mac, vid); in ice_eswitch_br_fdb_entry_create()
436 fdb_entry->br_port = br_port; in ice_eswitch_br_fdb_entry_create()
481 struct ice_esw_br_port *br_port; in ice_eswitch_br_fdb_event_work() local
485 br_port = ice_eswitch_br_netdev_to_port(fdb_work->dev); in ice_eswitch_br_fdb_event_work()
486 if (!br_port) in ice_eswitch_br_fdb_event_work()
491 ice_eswitch_br_fdb_entry_create(fdb_work->dev, br_port, in ice_eswitch_br_fdb_event_work()
495 ice_eswitch_br_fdb_entry_find_and_delete(br_port->bridge, in ice_eswitch_br_fdb_event_work()
790 struct ice_esw_br_port *br_port = ice_eswitch_br_netdev_to_port(netdev); in ice_eswitch_br_port_obj_add() local
794 if (!br_port) in ice_eswitch_br_port_obj_add()
800 err = ice_eswitch_br_port_vlan_add(br_port->bridge, in ice_eswitch_br_port_obj_add()
801 br_port->vsi_idx, vlan->vid, in ice_eswitch_br_port_obj_add()
813 struct ice_esw_br_port *br_port = ice_eswitch_br_netdev_to_port(netdev); in ice_eswitch_br_port_obj_del() local
816 if (!br_port) in ice_eswitch_br_port_obj_del()
822 ice_eswitch_br_port_vlan_del(br_port->bridge, br_port->vsi_idx, in ice_eswitch_br_port_obj_del()
835 struct ice_esw_br_port *br_port = ice_eswitch_br_netdev_to_port(netdev); in ice_eswitch_br_port_obj_attr_set() local
837 if (!br_port) in ice_eswitch_br_port_obj_attr_set()
842 ice_eswitch_br_vlan_filtering_set(br_port->bridge, in ice_eswitch_br_port_obj_attr_set()
846 br_port->bridge->ageing_time = in ice_eswitch_br_port_obj_attr_set()
886 struct ice_esw_br_port *br_port) in ice_eswitch_br_port_deinit() argument
889 struct ice_vsi *vsi = br_port->vsi; in ice_eswitch_br_port_deinit()
892 if (br_port == fdb_entry->br_port) in ice_eswitch_br_port_deinit()
896 if (br_port->type == ICE_ESWITCH_BR_UPLINK_PORT && vsi->back) in ice_eswitch_br_port_deinit()
897 vsi->back->br_port = NULL; in ice_eswitch_br_port_deinit()
899 vsi->vf->repr->br_port = NULL; in ice_eswitch_br_port_deinit()
901 xa_erase(&bridge->ports, br_port->vsi_idx); in ice_eswitch_br_port_deinit()
902 ice_eswitch_br_port_vlans_flush(br_port); in ice_eswitch_br_port_deinit()
903 kfree(br_port); in ice_eswitch_br_port_deinit()
909 struct ice_esw_br_port *br_port; in ice_eswitch_br_port_init() local
911 br_port = kzalloc(sizeof(*br_port), GFP_KERNEL); in ice_eswitch_br_port_init()
912 if (!br_port) in ice_eswitch_br_port_init()
915 xa_init(&br_port->vlans); in ice_eswitch_br_port_init()
917 br_port->bridge = bridge; in ice_eswitch_br_port_init()
919 return br_port; in ice_eswitch_br_port_init()
926 struct ice_esw_br_port *br_port; in ice_eswitch_br_vf_repr_port_init() local
929 br_port = ice_eswitch_br_port_init(bridge); in ice_eswitch_br_vf_repr_port_init()
930 if (IS_ERR(br_port)) in ice_eswitch_br_vf_repr_port_init()
931 return PTR_ERR(br_port); in ice_eswitch_br_vf_repr_port_init()
933 br_port->vsi = repr->src_vsi; in ice_eswitch_br_vf_repr_port_init()
934 br_port->vsi_idx = br_port->vsi->idx; in ice_eswitch_br_vf_repr_port_init()
935 br_port->type = ICE_ESWITCH_BR_VF_REPR_PORT; in ice_eswitch_br_vf_repr_port_init()
936 repr->br_port = br_port; in ice_eswitch_br_vf_repr_port_init()
938 err = xa_insert(&bridge->ports, br_port->vsi_idx, br_port, GFP_KERNEL); in ice_eswitch_br_vf_repr_port_init()
940 ice_eswitch_br_port_deinit(bridge, br_port); in ice_eswitch_br_vf_repr_port_init()
951 struct ice_esw_br_port *br_port; in ice_eswitch_br_uplink_port_init() local
954 br_port = ice_eswitch_br_port_init(bridge); in ice_eswitch_br_uplink_port_init()
955 if (IS_ERR(br_port)) in ice_eswitch_br_uplink_port_init()
956 return PTR_ERR(br_port); in ice_eswitch_br_uplink_port_init()
958 br_port->vsi = vsi; in ice_eswitch_br_uplink_port_init()
959 br_port->vsi_idx = br_port->vsi->idx; in ice_eswitch_br_uplink_port_init()
960 br_port->type = ICE_ESWITCH_BR_UPLINK_PORT; in ice_eswitch_br_uplink_port_init()
961 pf->br_port = br_port; in ice_eswitch_br_uplink_port_init()
963 err = xa_insert(&bridge->ports, br_port->vsi_idx, br_port, GFP_KERNEL); in ice_eswitch_br_uplink_port_init()
965 ice_eswitch_br_port_deinit(bridge, br_port); in ice_eswitch_br_uplink_port_init()
1066 struct ice_esw_br_port *br_port = ice_eswitch_br_netdev_to_port(dev); in ice_eswitch_br_port_unlink() local
1069 if (!br_port) { in ice_eswitch_br_port_unlink()
1075 if (br_port->bridge->ifindex != ifindex) { in ice_eswitch_br_port_unlink()
1081 bridge = br_port->bridge; in ice_eswitch_br_port_unlink()
1083 trace_ice_eswitch_br_port_unlink(br_port); in ice_eswitch_br_port_unlink()
1084 ice_eswitch_br_port_deinit(br_port->bridge, br_port); in ice_eswitch_br_port_unlink()
1112 trace_ice_eswitch_br_port_link(repr->br_port); in ice_eswitch_br_port_link()
1128 trace_ice_eswitch_br_port_link(pf->br_port); in ice_eswitch_br_port_link()