Lines Matching refs:vlan_id
38 __be16 vlan_id; member
50 __be16 vlan_id; member
67 __be16 vlan_id; member
81 __be16 vlan_id; member
115 __be16 vlan_id; member
121 __be16 vlan_id; member
136 __be16 vlan_id; member
144 __be16 vlan_id; member
238 static bool ofdpa_vlan_id_is_internal(__be16 vlan_id) in ofdpa_vlan_id_is_internal() argument
242 u16 _vlan_id = ntohs(vlan_id); in ofdpa_vlan_id_is_internal()
250 __be16 vlan_id; in ofdpa_port_vid_to_vlan() local
254 vlan_id = htons(vid); in ofdpa_port_vid_to_vlan()
255 if (!vlan_id) { in ofdpa_port_vid_to_vlan()
256 vlan_id = ofdpa_port->internal_vlan_id; in ofdpa_port_vid_to_vlan()
261 return vlan_id; in ofdpa_port_vid_to_vlan()
265 __be16 vlan_id) in ofdpa_port_vlan_to_vid() argument
267 if (ofdpa_vlan_id_is_internal(vlan_id)) in ofdpa_port_vlan_to_vid()
270 return ntohs(vlan_id); in ofdpa_port_vlan_to_vid()
329 entry->key.vlan.vlan_id)) in ofdpa_cmd_flow_tbl_add_vlan()
365 entry->key.term_mac.vlan_id)) in ofdpa_cmd_flow_tbl_add_term_mac()
416 if (entry->key.bridge.vlan_id && in ofdpa_cmd_flow_tbl_add_bridge()
418 entry->key.bridge.vlan_id)) in ofdpa_cmd_flow_tbl_add_bridge()
464 entry->key.acl.vlan_id)) in ofdpa_cmd_flow_tbl_add_acl()
611 if (entry->l2_rewrite.vlan_id && in ofdpa_cmd_group_tbl_add_l2_rewrite()
613 entry->l2_rewrite.vlan_id)) in ofdpa_cmd_group_tbl_add_l2_rewrite()
657 if (entry->l3_unicast.vlan_id && in ofdpa_cmd_group_tbl_add_l3_unicast()
659 entry->l3_unicast.vlan_id)) in ofdpa_cmd_group_tbl_add_l3_unicast()
856 u32 in_pport, __be16 vlan_id, in ofdpa_flow_tbl_vlan() argument
870 entry->key.vlan.vlan_id = vlan_id; in ofdpa_flow_tbl_vlan()
883 const u8 *eth_dst_mask, __be16 vlan_id, in ofdpa_flow_tbl_term_mac() argument
909 entry->key.term_mac.vlan_id = vlan_id; in ofdpa_flow_tbl_term_mac()
918 const u8 *eth_dst_mask, __be16 vlan_id, in ofdpa_flow_tbl_bridge() argument
925 bool vlan_bridging = !!vlan_id; in ofdpa_flow_tbl_bridge()
961 entry->key.bridge.vlan_id = vlan_id; in ofdpa_flow_tbl_bridge()
1001 __be16 eth_type, __be16 vlan_id, in ofdpa_flow_tbl_acl() argument
1036 entry->key.acl.vlan_id = vlan_id; in ofdpa_flow_tbl_acl()
1148 int flags, __be16 vlan_id, in ofdpa_group_l2_interface() argument
1157 entry->group_id = ROCKER_GROUP_L2_INTERFACE(vlan_id, out_pport); in ofdpa_group_l2_interface()
1187 int flags, __be16 vlan_id, in ofdpa_group_l2_flood() argument
1198 __be16 vlan_id, bool ttl_check, u32 pport) in ofdpa_group_l3_unicast() argument
1211 entry->l3_unicast.vlan_id = vlan_id; in ofdpa_group_l3_unicast()
1213 entry->l3_unicast.group_id = ROCKER_GROUP_L2_INTERFACE(vlan_id, pport); in ofdpa_group_l3_unicast()
1444 int flags, __be16 vlan_id) in ofdpa_port_vlan_flood_group() argument
1449 u32 group_id = ROCKER_GROUP_L2_FLOOD(vlan_id, 0); in ofdpa_port_vlan_flood_group()
1470 if (test_bit(ntohs(vlan_id), p->vlan_bitmap)) { in ofdpa_port_vlan_flood_group()
1472 ROCKER_GROUP_L2_INTERFACE(vlan_id, p->pport); in ofdpa_port_vlan_flood_group()
1480 err = ofdpa_group_l2_flood(ofdpa_port, flags, vlan_id, in ofdpa_port_vlan_flood_group()
1491 __be16 vlan_id, bool pop_vlan) in ofdpa_port_vlan_l2_groups() argument
1510 vlan_id, out_pport, pop_vlan); in ofdpa_port_vlan_l2_groups()
1525 if (p && test_bit(ntohs(vlan_id), p->vlan_bitmap)) in ofdpa_port_vlan_l2_groups()
1534 vlan_id, out_pport, pop_vlan); in ofdpa_port_vlan_l2_groups()
1595 const struct ofdpa_ctrl *ctrl, __be16 vlan_id) in ofdpa_port_ctrl_vlan_acl() argument
1607 u32 group_id = ROCKER_GROUP_L2_INTERFACE(vlan_id, out_pport); in ofdpa_port_ctrl_vlan_acl()
1615 vlan_id, vlan_id_mask, in ofdpa_port_ctrl_vlan_acl()
1628 __be16 vlan_id) in ofdpa_port_ctrl_vlan_bridge() argument
1632 u32 group_id = ROCKER_GROUP_L2_FLOOD(vlan_id, 0); in ofdpa_port_ctrl_vlan_bridge()
1641 vlan_id, tunnel_id, in ofdpa_port_ctrl_vlan_bridge()
1651 const struct ofdpa_ctrl *ctrl, __be16 vlan_id) in ofdpa_port_ctrl_vlan_term() argument
1657 if (ntohs(vlan_id) == 0) in ofdpa_port_ctrl_vlan_term()
1658 vlan_id = ofdpa_port->internal_vlan_id; in ofdpa_port_ctrl_vlan_term()
1662 ctrl->eth_dst_mask, vlan_id, in ofdpa_port_ctrl_vlan_term()
1673 const struct ofdpa_ctrl *ctrl, __be16 vlan_id) in ofdpa_port_ctrl_vlan() argument
1677 ctrl, vlan_id); in ofdpa_port_ctrl_vlan()
1680 ctrl, vlan_id); in ofdpa_port_ctrl_vlan()
1684 ctrl, vlan_id); in ofdpa_port_ctrl_vlan()
1690 __be16 vlan_id) in ofdpa_port_ctrl_vlan_add() argument
1698 &ofdpa_ctrls[i], vlan_id); in ofdpa_port_ctrl_vlan_add()
1731 __be16 vlan_id = htons(vid); in ofdpa_port_vlan() local
1773 in_pport, vlan_id, vlan_id_mask, in ofdpa_port_vlan()
1841 int flags, const u8 *addr, __be16 vlan_id) in ofdpa_port_fdb_learn() argument
1853 group_id = ROCKER_GROUP_L2_INTERFACE(vlan_id, out_pport); in ofdpa_port_fdb_learn()
1857 NULL, vlan_id, tunnel_id, goto_tbl, in ofdpa_port_fdb_learn()
1878 lw->vid = ofdpa_port_vlan_to_vid(ofdpa_port, vlan_id); in ofdpa_port_fdb_learn()
1899 __be16 vlan_id, int flags) in ofdpa_port_fdb() argument
1915 fdb->key.vlan_id = vlan_id; in ofdpa_port_fdb()
1944 return ofdpa_port_fdb_learn(ofdpa_port, flags, addr, vlan_id); in ofdpa_port_fdb()
1971 found->key.vlan_id); in ofdpa_port_fdb_flush()
2006 entry->key.vlan_id); in ofdpa_fdb_cleanup()
2019 int flags, __be16 vlan_id) in ofdpa_port_router_mac() argument
2028 if (ntohs(vlan_id) == 0) in ofdpa_port_router_mac()
2029 vlan_id = ofdpa_port->internal_vlan_id; in ofdpa_port_router_mac()
2035 dst_mac_mask, vlan_id, vlan_id_mask, in ofdpa_port_router_mac()
2044 dst_mac_mask, vlan_id, vlan_id_mask, in ofdpa_port_router_mac()
2054 __be16 vlan_id; in ofdpa_port_fwding() local
2073 vlan_id = htons(vid); in ofdpa_port_fwding()
2074 pop_vlan = ofdpa_vlan_id_is_internal(vlan_id); in ofdpa_port_fwding()
2076 vlan_id, out_pport, pop_vlan); in ofdpa_port_fwding()
2255 found->vlan_id = htons(OFDPA_INTERNAL_VLAN_ID_BASE + i); in ofdpa_port_internal_vlan_id_get()
2265 return found->vlan_id; in ofdpa_port_internal_vlan_id_get()
2333 bit = ntohs(found->vlan_id) - OFDPA_INTERNAL_VLAN_ID_BASE; in ofdpa_port_internal_vlan_id_put()
2553 __be16 vlan_id = ofdpa_port_vid_to_vlan(ofdpa_port, vid, NULL); in ofdpa_port_obj_fdb_add() local
2558 return ofdpa_port_fdb(ofdpa_port, addr, vlan_id, 0); in ofdpa_port_obj_fdb_add()
2565 __be16 vlan_id = ofdpa_port_vid_to_vlan(ofdpa_port, vid, NULL); in ofdpa_port_obj_fdb_del() local
2571 return ofdpa_port_fdb(ofdpa_port, addr, vlan_id, flags); in ofdpa_port_obj_fdb_del()
2700 __be16 vlan_id) in ofdpa_port_ev_mac_vlan_seen() argument
2709 return ofdpa_port_fdb(ofdpa_port, addr, vlan_id, flags); in ofdpa_port_ev_mac_vlan_seen()