Searched refs:vid (Results 276 - 300 of 614) sorted by path

<<11121314151617181920>>

/linux-master/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum.h291 u16 vid; member in struct:mlxsw_sp_port_vlan
454 u16 vid = 0; local
457 err = br_vlan_get_pvid(vxlan_dev, &vid);
458 if (err || !vid)
461 err = br_vlan_get_info(vxlan_dev, vid, &vinfo);
463 vid = 0;
466 *p_vid = vid;
490 u16 vid)
496 if (mlxsw_sp_port_vlan->vid == vid)
489 mlxsw_sp_port_vlan_find_by_vid(const struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) argument
[all...]
H A Dspectrum_acl.c474 u32 action, u16 vid, u16 proto, u8 prio,
495 vid, prio, ethertype,
472 mlxsw_sp_acl_rulei_act_vlan(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_rule_info *rulei, u32 action, u16 vid, u16 proto, u8 prio, struct netlink_ext_ack *extack) argument
H A Dspectrum_fid.c29 u16 vid; member in struct:mlxsw_sp_fid_port_vid
53 u16 vid; member in struct:mlxsw_sp_fid_8021q
88 struct mlxsw_sp_port *port, u16 vid);
90 struct mlxsw_sp_port *port, u16 vid);
454 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid)
458 return fid->fid_family->ops->port_vid_map(fid, mlxsw_sp_port, vid);
462 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid)
464 fid->fid_family->ops->port_vid_unmap(fid, mlxsw_sp_port, vid);
499 return mlxsw_sp_fid_8021q_fid(fid)->vid;
504 u16 vid local
453 mlxsw_sp_fid_port_vid_map(struct mlxsw_sp_fid *fid, struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) argument
461 mlxsw_sp_fid_port_vid_unmap(struct mlxsw_sp_fid *fid, struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) argument
645 mlxsw_sp_fid_vid_to_fid_map(const struct mlxsw_sp_fid *fid, u16 vid, bool valid, const struct mlxsw_sp_rif *rif) argument
890 __mlxsw_sp_fid_port_vid_map(const struct mlxsw_sp_fid *fid, u16 local_port, u16 vid, bool valid) argument
966 u16 vid = mlxsw_sp_port_vlan->vid; local
989 u16 vid = mlxsw_sp_port_vlan->vid; local
1009 u16 vid = mlxsw_sp_port_vlan->vid; local
1020 mlxsw_sp_fid_port_vid_list_add(struct mlxsw_sp_fid *fid, u16 local_port, u16 vid) argument
1042 mlxsw_sp_fid_port_vid_list_del(struct mlxsw_sp_fid *fid, u16 local_port, u16 vid) argument
1058 mlxsw_sp_fid_mpe_table_map(const struct mlxsw_sp_fid *fid, u16 local_port, u16 vid, bool valid) argument
1070 mlxsw_sp_fid_erif_eport_to_vid_map_one(const struct mlxsw_sp_fid *fid, u16 local_port, u16 vid, bool valid) argument
1092 mlxsw_sp_fid_evid_map(const struct mlxsw_sp_fid *fid, u16 local_port, u16 vid, bool valid) argument
1116 mlxsw_sp_fid_8021d_port_vid_map(struct mlxsw_sp_fid *fid, struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) argument
1157 mlxsw_sp_fid_8021d_port_vid_unmap(struct mlxsw_sp_fid *fid, struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) argument
1344 u16 vid = *(u16 *) arg; local
1415 mlxsw_sp_fid_rfid_port_vid_map(struct mlxsw_sp_fid *fid, struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) argument
1466 mlxsw_sp_fid_rfid_port_vid_unmap(struct mlxsw_sp_fid *fid, struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) argument
1753 mlxsw_sp_fid_8021q_port_vid_map(struct mlxsw_sp_fid *fid, struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) argument
1791 mlxsw_sp_fid_8021q_port_vid_unmap(struct mlxsw_sp_fid *fid, struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) argument
2084 mlxsw_sp_fid_8021q_get(struct mlxsw_sp *mlxsw_sp, u16 vid) argument
2095 mlxsw_sp_fid_8021q_lookup(struct mlxsw_sp *mlxsw_sp, u16 vid) argument
[all...]
H A Dspectrum_flower.c205 u16 vid = act->vlan.vid; local
208 act->id, vid,
H A Dspectrum_router.c106 u16 vid; member in struct:mlxsw_sp_rif_params
118 u16 vid; member in struct:mlxsw_sp_rif_subport
8205 u16 vid = 0; local
8218 vid = mlxsw_sp_fid_8021q_vid(rif->fid);
8222 return vid;
8794 u16 vid)
8800 upper_dev = __vlan_find_dev_deep_rcu(br_dev, htons(ETH_P_8021Q), vid);
8856 .vid = new_pvid,
8902 params->vid = mlxsw_sp_port_vlan->vid;
8792 mlxsw_sp_rif_destroy_vlan_upper(struct mlxsw_sp *mlxsw_sp, struct net_device *br_dev, u16 vid) argument
9165 u16 vid = mlxsw_sp_port_vlan->vid; local
9215 u16 vid = mlxsw_sp_port_vlan->vid; local
9254 mlxsw_sp_inetaddr_port_vlan_event(struct net_device *l3_dev, struct net_device *port_dev, unsigned long event, u16 vid, struct netlink_ext_ack *extack) argument
9290 __mlxsw_sp_inetaddr_lag_event(struct net_device *l3_dev, struct net_device *lag_dev, unsigned long event, u16 vid, struct netlink_ext_ack *extack) argument
9380 u16 vid = vlan_dev_vlan_id(vlan_dev); local
10167 mlxsw_sp_port_vid_router_join_existing(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid, struct net_device *dev, struct netlink_ext_ack *extack) argument
10183 mlxsw_sp_port_vid_router_leave(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid, struct net_device *dev) argument
10204 u16 vid; local
10249 u16 vid; local
10658 u16 vid = mlxsw_sp_fid_8021q_vid(rif->fid); local
10673 mlxsw_sp_rif_vlan_op(struct mlxsw_sp_rif *rif, u16 vid, u16 efid, bool enable) argument
10691 u16 vid = mlxsw_sp_fid_8021q_vid(rif->fid); local
10752 u16 vid = mlxsw_sp_fid_8021q_vid(rif->fid); local
[all...]
H A Dspectrum_span.c268 u16 vid = *p_vid; local
270 if (!vid && WARN_ON(br_vlan_get_pvid(br_dev, &vid)))
272 if (!vid || br_vlan_get_info(br_dev, vid, &vinfo) ||
276 edev = br_fdb_find_port(br_dev, dmac, vid);
280 if (br_vlan_get_info(edev, vid, &vinfo))
285 *p_vid = vid;
363 u16 vid = 0; local
372 edev = mlxsw_sp_span_entry_vlan(edev, &vid);
636 u16 vid; local
[all...]
H A Dspectrum_span.h36 u16 vid; member in struct:mlxsw_sp_span_parms
H A Dspectrum_switchdev.c78 u16 vid; member in struct:mlxsw_sp_bridge_vlan
90 const struct net_device *vxlan_dev, u16 vid,
94 u16 vid, struct netlink_ext_ack *extack);
97 u16 vid);
428 u16 vid = SWITCHDEV_OBJ_PORT_VLAN(port_obj_info->obj)->vid; local
430 err = mlxsw_sp_port_kill_vid(rso->mlxsw_sp_port->dev, 0, vid);
572 u16 vid)
584 mlxsw_sp_port_vlan->vid != vid)
569 mlxsw_sp_port_vlan_find_by_bridge(struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_bridge_device * bridge_device, u16 vid) argument
610 mlxsw_sp_bridge_vlan_find(const struct mlxsw_sp_bridge_port *bridge_port, u16 vid) argument
624 mlxsw_sp_bridge_vlan_create(struct mlxsw_sp_bridge_port *bridge_port, u16 vid) argument
648 mlxsw_sp_bridge_vlan_get(struct mlxsw_sp_bridge_port *bridge_port, u16 vid) argument
831 u16 vid = bridge_vlan->vid; local
1352 u16 vid = mlxsw_sp_port_vlan->vid; local
1401 u16 vid = mlxsw_sp_port_vlan->vid; local
1412 mlxsw_sp_port_pvid_determine(const struct mlxsw_sp_port *mlxsw_sp_port, u16 vid, bool is_pvid) argument
1430 u16 vid = mlxsw_sp_port_vlan->vid; local
1483 u16 vid = mlxsw_sp_port_vlan->vid; local
1513 mlxsw_sp_bridge_port_vlan_add(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_bridge_port *bridge_port, u16 vid, bool is_untagged, bool is_pvid, struct netlink_ext_ack *extack) argument
1778 __mlxsw_sp_port_fdb_uc_op(struct mlxsw_sp *mlxsw_sp, u16 local_port, const char *mac, u16 fid, u16 vid, bool adding, enum mlxsw_reg_sfd_rec_action action, enum mlxsw_reg_sfd_rec_policy policy) argument
1808 mlxsw_sp_port_fdb_uc_op(struct mlxsw_sp *mlxsw_sp, u16 local_port, const char *mac, u16 fid, u16 vid, bool adding, bool dynamic) argument
1863 u16 fid_index, vid; local
2289 mlxsw_sp_bridge_port_vlan_del(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_bridge_port *bridge_port, u16 vid) argument
2509 mlxsw_sp_bridge_vlan_aware_vxlan_join(struct mlxsw_sp_bridge_device *bridge_device, const struct net_device *vxlan_dev, u16 vid, u16 ethertype, struct netlink_ext_ack *extack) argument
2560 mlxsw_sp_bridge_8021q_vxlan_join(struct mlxsw_sp_bridge_device *bridge_device, const struct net_device *vxlan_dev, u16 vid, struct netlink_ext_ack *extack) argument
2569 mlxsw_sp_bridge_8021q_vxlan_dev_find(struct net_device *br_dev, u16 vid) argument
2592 mlxsw_sp_bridge_8021q_fid_get(struct mlxsw_sp_bridge_device *bridge_device, u16 vid, struct netlink_ext_ack *extack) argument
2601 mlxsw_sp_bridge_8021q_fid_lookup(struct mlxsw_sp_bridge_device *bridge_device, u16 vid) argument
2650 u16 vid; local
2690 u16 vid; local
2701 mlxsw_sp_bridge_8021d_vxlan_join(struct mlxsw_sp_bridge_device *bridge_device, const struct net_device *vxlan_dev, u16 vid, struct netlink_ext_ack *extack) argument
2741 mlxsw_sp_bridge_8021d_fid_get(struct mlxsw_sp_bridge_device *bridge_device, u16 vid, struct netlink_ext_ack *extack) argument
2750 mlxsw_sp_bridge_8021d_fid_lookup(struct mlxsw_sp_bridge_device *bridge_device, u16 vid) argument
2812 mlxsw_sp_bridge_8021ad_vxlan_join(struct mlxsw_sp_bridge_device *bridge_device, const struct net_device *vxlan_dev, u16 vid, struct netlink_ext_ack *extack) argument
2932 mlxsw_sp_bridge_vxlan_join(struct mlxsw_sp *mlxsw_sp, const struct net_device *br_dev, const struct net_device *vxlan_dev, u16 vid, struct netlink_ext_ack *extack) argument
3032 mlxsw_sp_fdb_call_notifiers(enum switchdev_notifier_type type, const char *mac, u16 vid, struct net_device *dev, bool offloaded, bool locked) argument
3053 u16 local_port, vid, fid, evid = 0; local
3125 u16 vid, fid; local
3242 u16 fid_index, vid; local
3550 u16 vid; local
3622 u16 vid; local
3821 mlxsw_sp_switchdev_vxlan_vlan_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_bridge_device *bridge_device, const struct net_device *vxlan_dev, u16 vid, bool flag_untagged, bool flag_pvid, struct netlink_ext_ack *extack) argument
3907 mlxsw_sp_switchdev_vxlan_vlan_del(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_bridge_device *bridge_device, const struct net_device *vxlan_dev, u16 vid) argument
[all...]
/linux-master/drivers/net/ethernet/micrel/
H A Dksz884x.c961 * @vid: VID value.
970 u16 vid; member in struct:ksz_mac_table
982 * @vid: VID value.
987 u16 vid; member in struct:ksz_vlan_table
1075 * @vid: VID value.
1083 u16 vid; member in struct:ksz_port_cfg
1678 * @vid: Buffer to store the VID.
1687 static int sw_r_vlan_table(struct ksz_hw *hw, u16 addr, u16 *vid, u8 *fid, argument
1694 *vid = (u16)(data & VLAN_TABLE_VID);
2326 * @vid
2330 port_get_def_vid(struct ksz_hw *hw, int port, u16 *vid) argument
[all...]
/linux-master/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_fdb.c19 u16 vid; member in struct:lan966x_fdb_entry
30 if (fdb_entry->vid == fdb_info->vid &&
54 fdb_entry->vid = fdb_info->vid;
66 if (fdb_entry->vid == fdb_info->vid &&
81 void lan966x_fdb_write_entries(struct lan966x *lan966x, u16 vid) argument
86 if (fdb_entry->vid != vid)
93 lan966x_fdb_erase_entries(struct lan966x *lan966x, u16 vid) argument
[all...]
H A Dlan966x_mac.c22 u16 vid; member in struct:lan966x_mac_entry
54 unsigned int vid)
61 mach |= vid << 16;
76 unsigned int vid,
81 lan966x_mac_select(lan966x, mac, vid);
98 unsigned int vid,
104 ret = __lan966x_mac_learn_locked(lan966x, pgid, cpu_copy, mac, vid, type);
116 unsigned int vid,
121 return __lan966x_mac_learn(lan966x, 0, cpu_copy, mac, vid, type);
126 unsigned int vid,
52 lan966x_mac_select(struct lan966x *lan966x, const unsigned char mac[ETH_ALEN], unsigned int vid) argument
73 __lan966x_mac_learn_locked(struct lan966x *lan966x, int pgid, bool cpu_copy, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument
95 __lan966x_mac_learn(struct lan966x *lan966x, int pgid, bool cpu_copy, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument
113 lan966x_mac_ip_learn(struct lan966x *lan966x, bool cpu_copy, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument
124 lan966x_mac_learn(struct lan966x *lan966x, int port, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument
134 lan966x_mac_learn_locked(struct lan966x *lan966x, int port, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument
144 lan966x_mac_forget_locked(struct lan966x *lan966x, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument
161 lan966x_mac_forget(struct lan966x *lan966x, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument
175 lan966x_mac_cpu_learn(struct lan966x *lan966x, const char *addr, u16 vid) argument
180 lan966x_mac_cpu_forget(struct lan966x *lan966x, const char *addr, u16 vid) argument
203 lan966x_mac_alloc_entry(struct lan966x_port *port, const unsigned char *mac, u16 vid) argument
221 lan966x_mac_find_entry(struct lan966x *lan966x, const unsigned char *mac, u16 vid, u16 port_index) argument
240 lan966x_mac_lookup(struct lan966x *lan966x, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument
261 lan966x_fdb_call_notifiers(enum switchdev_notifier_type type, const char *mac, u16 vid, struct net_device *dev) argument
273 lan966x_mac_add_entry(struct lan966x *lan966x, struct lan966x_port *port, const unsigned char *addr, u16 vid) argument
314 lan966x_mac_del_entry(struct lan966x *lan966x, const unsigned char *addr, u16 vid) argument
397 lan966x_mac_notifiers(enum switchdev_notifier_type type, unsigned char *mac, u32 vid, struct net_device *dev) argument
406 lan966x_mac_process_raw_entry(struct lan966x_mac_raw_entry *raw_entry, u8 *mac, u16 *vid, u32 *dest_idx) argument
429 u16 vid; local
[all...]
H A Dlan966x_main.c346 static void lan966x_ifh_set_vid(void *ifh, u64 vid) argument
348 lan966x_ifh_set(ifh, vid, IFH_POS_TCI, IFH_WID_TCI);
H A Dlan966x_main.h446 u16 vid; member in struct:lan966x_port
512 unsigned int vid,
516 unsigned int vid,
520 unsigned int vid,
522 int lan966x_mac_cpu_learn(struct lan966x *lan966x, const char *addr, u16 vid);
523 int lan966x_mac_cpu_forget(struct lan966x *lan966x, const char *addr, u16 vid);
529 u16 vid);
533 u16 vid);
544 bool lan966x_vlan_cpu_member_cpu_vlan_mask(struct lan966x *lan966x, u16 vid);
548 u16 vid,
[all...]
H A Dlan966x_mdb.c17 u16 vid; member in struct:lan966x_mdb_entry
58 u16 vid)
64 mdb_entry->vid == vid)
82 mdb_entry->vid = mdb->vid;
115 mdb_entry = lan966x_mdb_entry_get(lan966x, mdb->addr, mdb->vid);
122 lan966x_mac_forget(lan966x, mac, mdb_entry->vid, type);
131 if (lan966x_vlan_cpu_member_cpu_vlan_mask(lan966x, mdb_entry->vid) &&
137 mac, mdb_entry->vid, typ
56 lan966x_mdb_entry_get(struct lan966x *lan966x, const unsigned char *mac, u16 vid) argument
436 lan966x_mdb_write_entries(struct lan966x *lan966x, u16 vid) argument
491 lan966x_mdb_erase_entries(struct lan966x *lan966x, u16 vid) argument
[all...]
H A Dlan966x_switchdev.c538 lan966x_vlan_port_add_vlan(port, v->vid,
542 lan966x_vlan_cpu_add_vlan(lan966x, v->vid);
580 lan966x_vlan_port_del_vlan(port, v->vid);
582 lan966x_vlan_cpu_del_vlan(lan966x, v->vid);
H A Dlan966x_vlan.c26 static void lan966x_vlan_set_mask(struct lan966x *lan966x, u16 vid) argument
28 u16 mask = lan966x->vlan_mask[vid];
35 ANA_VLANTIDX_V_INDEX_SET(vid),
54 static void lan966x_vlan_port_add_vlan_mask(struct lan966x_port *port, u16 vid) argument
59 lan966x->vlan_mask[vid] |= BIT(p);
60 lan966x_vlan_set_mask(lan966x, vid);
63 static void lan966x_vlan_port_del_vlan_mask(struct lan966x_port *port, u16 vid) argument
68 lan966x->vlan_mask[vid] &= ~BIT(p);
69 lan966x_vlan_set_mask(lan966x, vid);
72 static bool lan966x_vlan_port_any_vlan_mask(struct lan966x *lan966x, u16 vid) argument
77 lan966x_vlan_cpu_add_vlan_mask(struct lan966x *lan966x, u16 vid) argument
83 lan966x_vlan_cpu_del_vlan_mask(struct lan966x *lan966x, u16 vid) argument
89 lan966x_vlan_cpu_add_cpu_vlan_mask(struct lan966x *lan966x, u16 vid) argument
94 lan966x_vlan_cpu_del_cpu_vlan_mask(struct lan966x *lan966x, u16 vid) argument
99 lan966x_vlan_cpu_member_cpu_vlan_mask(struct lan966x *lan966x, u16 vid) argument
114 lan966x_vlan_port_set_vid(struct lan966x_port *port, u16 vid, bool pvid, bool untagged) argument
137 lan966x_vlan_port_remove_vid(struct lan966x_port *port, u16 vid) argument
213 lan966x_vlan_port_add_vlan(struct lan966x_port *port, u16 vid, bool pvid, bool untagged) argument
236 lan966x_vlan_port_del_vlan(struct lan966x_port *port, u16 vid) argument
255 lan966x_vlan_cpu_add_vlan(struct lan966x *lan966x, u16 vid) argument
274 lan966x_vlan_cpu_del_vlan(struct lan966x *lan966x, u16 vid) argument
285 u16 port, vid; local
[all...]
/linux-master/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_mactable.c40 u16 vid; member in struct:sparx5_mact_entry
61 u16 vid)
68 mach |= vid << 16;
81 const unsigned char mac[ETH_ALEN], u16 vid)
96 sparx5_mact_select(sparx5, mac, vid);
136 u16 *vid, u32 *pcfg2)
151 *vid = mach >> 16;
160 unsigned char mac[ETH_ALEN], u16 *vid, u32 *pcfg2)
167 sparx5_mact_select(sparx5, mac, *vid);
179 ret = sparx5_mact_get(sparx5, mac, vid,
59 sparx5_mact_select(struct sparx5 *sparx5, const unsigned char mac[ETH_ALEN], u16 vid) argument
80 sparx5_mact_learn(struct sparx5 *sparx5, int pgid, const unsigned char mac[ETH_ALEN], u16 vid) argument
134 sparx5_mact_get(struct sparx5 *sparx5, unsigned char mac[ETH_ALEN], u16 *vid, u32 *pcfg2) argument
159 sparx5_mact_getnext(struct sparx5 *sparx5, unsigned char mac[ETH_ALEN], u16 *vid, u32 *pcfg2) argument
189 sparx5_mact_find(struct sparx5 *sparx5, const unsigned char mac[ETH_ALEN], u16 vid, u32 *pcfg2) argument
218 sparx5_mact_forget(struct sparx5 *sparx5, const unsigned char mac[ETH_ALEN], u16 vid) argument
239 alloc_mact_entry(struct sparx5 *sparx5, const unsigned char *mac, u16 vid, u16 port_index) argument
256 find_mact_entry(struct sparx5 *sparx5, const unsigned char *mac, u16 vid, u16 port_index) argument
277 sparx5_fdb_call_notifiers(enum switchdev_notifier_type type, const char *mac, u16 vid, struct net_device *dev, bool offloaded) argument
289 sparx5_add_mact_entry(struct sparx5 *sparx5, struct net_device *dev, u16 portno, const unsigned char *addr, u16 vid) argument
336 sparx5_del_mact_entry(struct sparx5 *sparx5, const unsigned char *addr, u16 vid) argument
361 sparx5_mact_handle_entry(struct sparx5 *sparx5, unsigned char mac[ETH_ALEN], u16 vid, u32 cfg2) argument
428 u16 vid; local
[all...]
H A Dsparx5_main.h179 /* Egress default VLAN (vid) */
180 u16 vid; member in struct:sparx5_port
226 u16 vid; member in struct:sparx5_mdb_entry
328 const unsigned char mac[ETH_ALEN], u16 vid);
330 unsigned char mac[ETH_ALEN], u16 *vid, u32 *pcfg2);
332 const unsigned char mac[ETH_ALEN], u16 vid, u32 *pcfg2);
334 const unsigned char mac[ETH_ALEN], u16 vid);
338 const unsigned char *addr, u16 vid);
341 u16 vid);
354 int sparx5_vlan_vid_add(struct sparx5_port *port, u16 vid, boo
[all...]
H A Dsparx5_switchdev.c219 port->vid = NULL_VID;
254 u16 vid = port->pvid; local
257 sparx5_mact_learn(sparx5, PGID_CPU, port->ndev->dev_addr, vid);
259 sparx5_mact_forget(sparx5, port->ndev->dev_addr, vid);
308 u16 vid; local
325 if (fdb_info->vid == 0)
326 vid = 1;
328 vid = fdb_info->vid;
334 fdb_info->addr, vid);
434 sparx5_alloc_mdb_entry(struct sparx5 *sparx5, const unsigned char *addr, u16 vid, struct sparx5_mdb_entry **entry_out) argument
465 sparx5_free_mdb_entry(struct sparx5 *sparx5, const unsigned char *addr, u16 vid) argument
487 sparx5_mdb_get_entry(struct sparx5 *sparx5, const unsigned char *addr, u16 vid) argument
522 u16 vid; local
578 u16 vid; local
644 sparx5_handle_port_vlan_del(struct net_device *dev, struct notifier_block *nb, u16 vid) argument
[all...]
H A Dsparx5_tc_flower.c955 act->vlan.vid);
H A Dsparx5_vlan.c10 static int sparx5_vlant_set_mask(struct sparx5 *sparx5, u16 vid) argument
15 bitmap_to_arr32(mask, sparx5->vlan_mask[vid], SPX5_PORTS);
18 spx5_wr(mask[0], sparx5, ANA_L3_VLAN_MASK_CFG(vid));
19 spx5_wr(mask[1], sparx5, ANA_L3_VLAN_MASK_CFG1(vid));
20 spx5_wr(mask[2], sparx5, ANA_L3_VLAN_MASK_CFG2(vid));
27 u16 vid; local
35 for (vid = NULL_VID; vid < VLAN_N_VID; vid++)
36 spx5_rmw(ANA_L3_VLAN_CFG_VLAN_FID_SET(vid),
55 sparx5_vlan_vid_add(struct sparx5_port *port, u16 vid, bool pvid, bool untagged) argument
87 sparx5_vlan_vid_del(struct sparx5_port *port, u16 vid) argument
[all...]
/linux-master/drivers/net/ethernet/mscc/
H A Docelot.c26 u16 vid; member in struct:ocelot_mact_entry
51 unsigned int vid)
58 mach |= vid << 16;
73 unsigned int vid, enum macaccess_entry_type type)
93 ocelot_mact_select(ocelot, mac, vid);
105 unsigned int vid, enum macaccess_entry_type type)
110 ret = __ocelot_mact_learn(ocelot, port, mac, vid, type);
118 const unsigned char mac[ETH_ALEN], unsigned int vid)
124 ocelot_mact_select(ocelot, mac, vid);
141 unsigned int vid, enu
49 ocelot_mact_select(struct ocelot *ocelot, const unsigned char mac[ETH_ALEN], unsigned int vid) argument
71 __ocelot_mact_learn(struct ocelot *ocelot, int port, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument
103 ocelot_mact_learn(struct ocelot *ocelot, int port, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument
117 ocelot_mact_forget(struct ocelot *ocelot, const unsigned char mac[ETH_ALEN], unsigned int vid) argument
139 ocelot_mact_lookup(struct ocelot *ocelot, int *dst_idx, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type *type) argument
174 ocelot_mact_learn_streamdata(struct ocelot *ocelot, int dst_idx, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type, int sfid, int ssid) argument
307 ocelot_vlant_set_mask(struct ocelot *ocelot, u16 vid, u32 mask) argument
489 ocelot_bridge_vlan_find(struct ocelot *ocelot, u16 vid) argument
501 ocelot_vlan_member_add(struct ocelot *ocelot, int port, u16 vid, bool untagged) argument
550 ocelot_vlan_member_del(struct ocelot *ocelot, int port, u16 vid) argument
578 u16 vid = ocelot_vlan_unaware_pvid(ocelot, bridge); local
586 u16 vid = ocelot_vlan_unaware_pvid(ocelot, bridge); local
641 ocelot_vlan_prepare(struct ocelot *ocelot, int port, u16 vid, bool pvid, bool untagged, struct netlink_ext_ack *extack) argument
670 ocelot_vlan_add(struct ocelot *ocelot, int port, u16 vid, bool pvid, bool untagged) argument
698 ocelot_vlan_del(struct ocelot *ocelot, int port, u16 vid) argument
728 u16 port, vid; local
1255 ocelot_fdb_add(struct ocelot *ocelot, int port, const unsigned char *addr, u16 vid, const struct net_device *bridge) argument
1265 ocelot_fdb_del(struct ocelot *ocelot, int port, const unsigned char *addr, u16 vid, const struct net_device *bridge) argument
1680 u16 vid; local
1698 u16 vid; local
1774 ocelot_multicast_get(struct ocelot *ocelot, const unsigned char *addr, u16 vid) argument
1888 u16 vid = mdb->vid; local
1945 u16 vid = mdb->vid; local
2150 u16 vid = mc->vid; local
2310 ocelot_lag_fdb_add(struct ocelot *ocelot, struct net_device *bond, const unsigned char *addr, u16 vid, const struct net_device *bridge) argument
2346 ocelot_lag_fdb_del(struct ocelot *ocelot, struct net_device *bond, const unsigned char *addr, u16 vid, const struct net_device *bridge) argument
[all...]
H A Docelot.h72 u16 vid; member in struct:ocelot_multicast
91 unsigned int vid, enum macaccess_entry_type type);
93 const unsigned char mac[ETH_ALEN], unsigned int vid);
H A Docelot_flower.c193 filter->action.vid = a->vlan.vid;
223 filter->action.vid_a_val = a->vlan.vid;
483 filter->action.vid_a_val = a->vlan.vid;
623 filter->vlan.vid.value = match.key->vlan_id;
624 filter->vlan.vid.mask = match.mask->vlan_id;
856 if (filter->vlan.vid.mask != VLAN_VID_MASK) {
862 filter->action.vid_a_val -= filter->vlan.vid.value;
H A Docelot_net.c492 static int ocelot_vlan_vid_add(struct net_device *dev, u16 vid, bool pvid, argument
501 ret = ocelot_vlan_add(ocelot, port, vid, pvid, untagged);
506 ocelot_mact_learn(ocelot, PGID_CPU, dev->dev_addr, vid,
512 static int ocelot_vlan_vid_del(struct net_device *dev, u16 vid) argument
523 if (vid == OCELOT_STANDALONE_PVID)
526 ret = ocelot_vlan_del(ocelot, port, vid);
531 ocelot_mact_forget(ocelot, dev->dev_addr, vid);
605 u16 vid; member in struct:ocelot_mact_work_ctx::__anon1422::__anon1423
612 u16 vid; member in struct:ocelot_mact_work_ctx::__anon1422::__anon1424
628 w->learn.vid,
730 ocelot_port_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, const unsigned char *addr, u16 vid, u16 flags, struct netlink_ext_ack *extack) argument
744 ocelot_port_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, const unsigned char *addr, u16 vid, struct netlink_ext_ack *extack) argument
757 ocelot_port_fdb_do_dump(const unsigned char *addr, u16 vid, bool is_static, void *data) argument
823 ocelot_vlan_rx_add_vid(struct net_device *dev, __be16 proto, u16 vid) argument
829 ocelot_vlan_rx_kill_vid(struct net_device *dev, __be16 proto, u16 vid) argument
1074 ocelot_vlan_vid_prepare(struct net_device *dev, u16 vid, bool pvid, bool untagged, struct netlink_ext_ack *extack) argument
[all...]

Completed in 747 milliseconds

<<11121314151617181920>>