Home
last modified time | relevance | path

Searched refs:port_no (Results 1 – 17 of 17) sorted by relevance

/net/openvswitch/
Ddatapath.h203 struct vport *ovs_lookup_vport(const struct datapath *dp, u16 port_no);
205 static inline struct vport *ovs_vport_rcu(const struct datapath *dp, int port_no) in ovs_vport_rcu() argument
208 return ovs_lookup_vport(dp, port_no); in ovs_vport_rcu()
211 static inline struct vport *ovs_vport_ovsl_rcu(const struct datapath *dp, int port_no) in ovs_vport_ovsl_rcu() argument
214 return ovs_lookup_vport(dp, port_no); in ovs_vport_ovsl_rcu()
217 static inline struct vport *ovs_vport_ovsl(const struct datapath *dp, int port_no) in ovs_vport_ovsl() argument
220 return ovs_lookup_vport(dp, port_no); in ovs_vport_ovsl()
Ddatapath.c176 u16 port_no) in vport_hash_bucket() argument
178 return &dp->ports[port_no & (DP_VPORT_HASH_BUCKETS - 1)]; in vport_hash_bucket()
182 struct vport *ovs_lookup_vport(const struct datapath *dp, u16 port_no) in ovs_lookup_vport() argument
187 head = vport_hash_bucket(dp, port_no); in ovs_lookup_vport()
190 if (vport->port_no == port_no) in ovs_lookup_vport()
204 struct hlist_head *head = vport_hash_bucket(dp, vport->port_no); in new_vport()
1600 dp = vport && vport->port_no == OVSP_LOCAL ? vport->dp : NULL; in lookup_datapath()
1795 parms.port_no = OVSP_LOCAL; in ovs_dp_cmd_new()
1865 if (vport->port_no != OVSP_LOCAL) in __dp_destroy()
2070 if (nla_put_u32(skb, OVS_VPORT_ATTR_PORT_NO, vport->port_no) || in ovs_vport_cmd_fill_info()
[all …]
Dvport.h74 u16 port_no; member
101 u16 port_no; member
Dvport.c139 vport->port_no = parms->port_no; in ovs_vport_alloc()
Dvport-internal_dev.c154 if (vport->port_no == OVSP_LOCAL) in internal_dev_create()
Dflow.c889 key->phy.in_port = OVS_CB(skb)->input_vport->port_no; in ovs_flow_key_extract()
/net/bridge/
Dbr_stp.c49 (unsigned int) p->port_no, p->dev->name); in br_set_state()
52 (unsigned int) p->port_no, p->dev->name, in br_set_state()
82 struct net_bridge_port *br_get_port(struct net_bridge *br, u16 port_no) in br_get_port() argument
88 if (p->port_no == port_no) in br_get_port()
151 (unsigned int) p->port_no, p->dev->name); in br_root_port_block()
173 root_port = p->port_no; in br_root_selection()
475 if (p->port_no == br->root_port) { in br_port_state_selection()
540 if (p->port_no == br->root_port) { in br_received_config_bpdu()
558 (unsigned int) p->port_no, p->dev->name); in br_received_tcn_bpdu()
Dbr_stp_timer.c57 (unsigned int) p->port_no, p->dev->name, in br_message_age_timer_expired()
85 (unsigned int) p->port_no, p->dev->name); in br_forward_delay_timer_expired()
133 (unsigned int) p->port_no, p->dev->name); in br_hold_timer_expired()
Dbr_stp_if.c24 static inline port_id br_make_port_id(__u8 priority, __u16 port_no) in br_make_port_id() argument
27 | (port_no & ((1<<BR_PORT_BITS)-1)); in br_make_port_id()
37 p->port_id = br_make_port_id(p->priority, p->port_no); in br_init_port()
319 new_port_id = br_make_port_id(newprio, p->port_no); in br_stp_set_port_priority()
Dbr_stp_bpdu.c183 (unsigned int) p->port_no, p->dev->name); in br_stp_rcv()
233 p->port_no, in br_stp_rcv()
Dbr_ioctl.c43 if (p->port_no < num) in get_port_ifindices()
44 ifindices[p->port_no] = p->dev->ifindex; in get_port_ifindices()
Dbr_sysfs_if.c132 return sprintf(buf, "0x%x\n", p->port_no); in show_port_no()
135 static BRPORT_ATTR(port_no, 0444, show_port_no, NULL);
Dbr_netlink.c259 nla_put_u16(skb, IFLA_BRPORT_NO, p->port_no) || in br_port_fill_attrs()
583 u16 port_no = 0; in br_info_notify() local
591 port_no = port->port_no; in br_info_notify()
597 br_debug(br, "port %u(%s) event %d\n", port_no, dev->name, event); in br_info_notify()
Dbr_if.c403 set_bit(p->port_no, inuse); in find_portno()
431 p->port_no = index; in new_nbp()
Dbr_fdb.c492 fe->port_no = f->dst->port_no; in br_fdb_fillbuf()
493 fe->port_hi = f->dst->port_no >> 8; in br_fdb_fillbuf()
Dbr_private.h360 u16 port_no; member
1803 struct net_bridge_port *br_get_port(struct net_bridge *br, u16 port_no);
Dbr_vlan.c1100 set_bit(p->port_no, changed); in __br_vlan_set_default_pvid()
1111 if (!test_bit(p->port_no, changed)) in __br_vlan_set_default_pvid()