Home
last modified time | relevance | path

Searched refs:ndm (Results 1 - 25 of 37) sorted by relevance

12

/kernel/linux/linux-5.10/net/bridge/
H A Dbr_fdb.c655 struct ndmsg *ndm; in fdb_fill_info() local
657 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in fdb_fill_info()
661 ndm = nlmsg_data(nlh); in fdb_fill_info()
662 ndm->ndm_family = AF_BRIDGE; in fdb_fill_info()
663 ndm->ndm_pad1 = 0; in fdb_fill_info()
664 ndm->ndm_pad2 = 0; in fdb_fill_info()
665 ndm->ndm_flags = 0; in fdb_fill_info()
666 ndm->ndm_type = 0; in fdb_fill_info()
667 ndm->ndm_ifindex = fdb->dst ? fdb->dst->dev->ifindex : br->dev->ifindex; in fdb_fill_info()
668 ndm in fdb_fill_info()
860 fdb_add_entry(struct net_bridge *br, struct net_bridge_port *source, const u8 *addr, struct ndmsg *ndm, u16 flags, u16 vid, struct nlattr *nfea_tb[]) fdb_add_entry() argument
951 __br_fdb_add(struct ndmsg *ndm, struct net_bridge *br, struct net_bridge_port *p, const unsigned char *addr, u16 nlh_flags, u16 vid, struct nlattr *nfea_tb[], struct netlink_ext_ack *extack) __br_fdb_add() argument
994 br_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, const unsigned char *addr, u16 vid, u16 nlh_flags, struct netlink_ext_ack *extack) br_fdb_add() argument
1105 br_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, const unsigned char *addr, u16 vid) br_fdb_delete() argument
[all...]
/kernel/linux/linux-6.6/net/mctp/
H A Dneigh.c121 struct ndmsg *ndm; in mctp_rtm_newneigh() local
128 rc = nlmsg_parse(nlh, sizeof(*ndm), tb, NDA_MAX, nd_mctp_policy, in mctp_rtm_newneigh()
154 ndm = nlmsg_data(nlh); in mctp_rtm_newneigh()
156 dev = __dev_get_by_index(net, ndm->ndm_ifindex); in mctp_rtm_newneigh()
180 struct ndmsg *ndm; in mctp_rtm_delneigh() local
184 rc = nlmsg_parse(nlh, sizeof(*ndm), tb, NDA_MAX, nd_mctp_policy, in mctp_rtm_delneigh()
197 ndm = nlmsg_data(nlh); in mctp_rtm_delneigh()
198 dev = __dev_get_by_index(net, ndm->ndm_ifindex); in mctp_rtm_delneigh()
/kernel/linux/linux-5.10/net/core/
H A Dneighbour.c1815 struct ndmsg *ndm; in neigh_delete() local
1823 if (nlmsg_len(nlh) < sizeof(*ndm)) in neigh_delete()
1826 dst_attr = nlmsg_find_attr(nlh, sizeof(*ndm), NDA_DST); in neigh_delete()
1832 ndm = nlmsg_data(nlh); in neigh_delete()
1833 if (ndm->ndm_ifindex) { in neigh_delete()
1834 dev = __dev_get_by_index(net, ndm->ndm_ifindex); in neigh_delete()
1841 tbl = neigh_find_table(ndm->ndm_family); in neigh_delete()
1850 if (ndm->ndm_flags & NTF_PROXY) { in neigh_delete()
1882 struct ndmsg *ndm; in neigh_add() local
1892 err = nlmsg_parse_deprecated(nlh, sizeof(*ndm), t in neigh_add()
2456 struct ndmsg *ndm; neigh_fill_info() local
2511 struct ndmsg *ndm; pneigh_fill_info() local
2674 struct ndmsg *ndm; neigh_valid_dump_req() local
2778 struct ndmsg *ndm; neigh_valid_get_req() local
[all...]
H A Drtnetlink.c3904 struct ndmsg *ndm; in nlmsg_populate_fdb_fill() local
3906 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ndm), nlflags); in nlmsg_populate_fdb_fill()
3910 ndm = nlmsg_data(nlh); in nlmsg_populate_fdb_fill()
3911 ndm->ndm_family = AF_BRIDGE; in nlmsg_populate_fdb_fill()
3912 ndm->ndm_pad1 = 0; in nlmsg_populate_fdb_fill()
3913 ndm->ndm_pad2 = 0; in nlmsg_populate_fdb_fill()
3914 ndm->ndm_flags = flags; in nlmsg_populate_fdb_fill()
3915 ndm->ndm_type = 0; in nlmsg_populate_fdb_fill()
3916 ndm->ndm_ifindex = dev->ifindex; in nlmsg_populate_fdb_fill()
3917 ndm in nlmsg_populate_fdb_fill()
3968 ndo_dflt_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, const unsigned char *addr, u16 vid, u16 flags) ndo_dflt_fdb_add() argument
4028 struct ndmsg *ndm; rtnl_fdb_add() local
4108 ndo_dflt_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, const unsigned char *addr, u16 vid) ndo_dflt_fdb_del() argument
4136 struct ndmsg *ndm; rtnl_fdb_del() local
4281 struct ndmsg *ndm; valid_fdb_dump_strict() local
4470 struct ndmsg *ndm; valid_fdb_get_strict() local
[all...]
/kernel/linux/linux-6.6/net/bridge/
H A Dbr_fdb.c107 struct ndmsg *ndm; in fdb_fill_info() local
110 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in fdb_fill_info()
114 ndm = nlmsg_data(nlh); in fdb_fill_info()
115 ndm->ndm_family = AF_BRIDGE; in fdb_fill_info()
116 ndm->ndm_pad1 = 0; in fdb_fill_info()
117 ndm->ndm_pad2 = 0; in fdb_fill_info()
118 ndm->ndm_flags = 0; in fdb_fill_info()
119 ndm->ndm_type = 0; in fdb_fill_info()
120 ndm->ndm_ifindex = dst ? dst->dev->ifindex : br->dev->ifindex; in fdb_fill_info()
121 ndm in fdb_fill_info()
664 br_fdb_delete_bulk(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, u16 vid, struct netlink_ext_ack *extack) br_fdb_delete_bulk() argument
1021 fdb_add_entry(struct net_bridge *br, struct net_bridge_port *source, const u8 *addr, struct ndmsg *ndm, u16 flags, u16 vid, struct nlattr *nfea_tb[]) fdb_add_entry() argument
1115 __br_fdb_add(struct ndmsg *ndm, struct net_bridge *br, struct net_bridge_port *p, const unsigned char *addr, u16 nlh_flags, u16 vid, struct nlattr *nfea_tb[], struct netlink_ext_ack *extack) __br_fdb_add() argument
1158 br_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, const unsigned char *addr, u16 vid, u16 nlh_flags, struct netlink_ext_ack *extack) br_fdb_add() argument
1278 br_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, const unsigned char *addr, u16 vid, struct netlink_ext_ack *extack) br_fdb_delete() argument
[all...]
/kernel/linux/linux-6.6/net/core/
H A Dneighbour.c1898 struct ndmsg *ndm; in neigh_delete() local
1906 if (nlmsg_len(nlh) < sizeof(*ndm)) in neigh_delete()
1909 dst_attr = nlmsg_find_attr(nlh, sizeof(*ndm), NDA_DST); in neigh_delete()
1915 ndm = nlmsg_data(nlh); in neigh_delete()
1916 if (ndm->ndm_ifindex) { in neigh_delete()
1917 dev = __dev_get_by_index(net, ndm->ndm_ifindex); in neigh_delete()
1924 tbl = neigh_find_table(ndm->ndm_family); in neigh_delete()
1933 if (ndm->ndm_flags & NTF_PROXY) { in neigh_delete()
1965 struct ndmsg *ndm; in neigh_add() local
1976 err = nlmsg_parse_deprecated(nlh, sizeof(*ndm), t in neigh_add()
2569 struct ndmsg *ndm; neigh_fill_info() local
2630 struct ndmsg *ndm; pneigh_fill_info() local
2805 struct ndmsg *ndm; neigh_valid_dump_req() local
2909 struct ndmsg *ndm; neigh_valid_get_req() local
[all...]
H A Drtnetlink.c4101 struct ndmsg *ndm; in nlmsg_populate_fdb_fill() local
4103 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ndm), nlflags); in nlmsg_populate_fdb_fill()
4107 ndm = nlmsg_data(nlh); in nlmsg_populate_fdb_fill()
4108 ndm->ndm_family = AF_BRIDGE; in nlmsg_populate_fdb_fill()
4109 ndm->ndm_pad1 = 0; in nlmsg_populate_fdb_fill()
4110 ndm->ndm_pad2 = 0; in nlmsg_populate_fdb_fill()
4111 ndm->ndm_flags = flags; in nlmsg_populate_fdb_fill()
4112 ndm->ndm_type = 0; in nlmsg_populate_fdb_fill()
4113 ndm->ndm_ifindex = dev->ifindex; in nlmsg_populate_fdb_fill()
4114 ndm in nlmsg_populate_fdb_fill()
4165 ndo_dflt_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, const unsigned char *addr, u16 vid, u16 flags) ndo_dflt_fdb_add() argument
4230 struct ndmsg *ndm; rtnl_fdb_add() local
4310 ndo_dflt_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, const unsigned char *addr, u16 vid) ndo_dflt_fdb_del() argument
4347 struct ndmsg *ndm; rtnl_fdb_del() local
4513 struct ndmsg *ndm; valid_fdb_dump_strict() local
4702 struct ndmsg *ndm; valid_fdb_get_strict() local
[all...]
/kernel/linux/linux-5.10/include/trace/events/
H A Dbridge.h14 TP_PROTO(struct ndmsg *ndm, struct net_device *dev,
17 TP_ARGS(ndm, dev, addr, vid, nlh_flags),
32 __entry->ndm_flags = ndm->ndm_flags;
/kernel/linux/linux-6.6/include/trace/events/
H A Dbridge.h14 TP_PROTO(struct ndmsg *ndm, struct net_device *dev,
17 TP_ARGS(ndm, dev, addr, vid, nlh_flags),
32 __entry->ndm_flags = ndm->ndm_flags;
/kernel/linux/linux-5.10/include/linux/
H A Drtnetlink.h118 extern int ndo_dflt_fdb_add(struct ndmsg *ndm,
124 extern int ndo_dflt_fdb_del(struct ndmsg *ndm,
/kernel/linux/linux-6.6/include/linux/
H A Drtnetlink.h111 extern int ndo_dflt_fdb_add(struct ndmsg *ndm,
117 extern int ndo_dflt_fdb_del(struct ndmsg *ndm,
/kernel/linux/linux-5.10/drivers/net/ethernet/mscc/
H A Docelot.c655 struct ndmsg *ndm; in ocelot_port_fdb_do_dump() local
661 sizeof(*ndm), NLM_F_MULTI); in ocelot_port_fdb_do_dump()
665 ndm = nlmsg_data(nlh); in ocelot_port_fdb_do_dump()
666 ndm->ndm_family = AF_BRIDGE; in ocelot_port_fdb_do_dump()
667 ndm->ndm_pad1 = 0; in ocelot_port_fdb_do_dump()
668 ndm->ndm_pad2 = 0; in ocelot_port_fdb_do_dump()
669 ndm->ndm_flags = NTF_SELF; in ocelot_port_fdb_do_dump()
670 ndm->ndm_type = 0; in ocelot_port_fdb_do_dump()
671 ndm->ndm_ifindex = dump->dev->ifindex; in ocelot_port_fdb_do_dump()
672 ndm in ocelot_port_fdb_do_dump()
[all...]
H A Docelot_net.c513 static int ocelot_port_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in ocelot_port_fdb_add() argument
526 static int ocelot_port_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in ocelot_port_fdb_del() argument
/kernel/linux/linux-5.10/net/dsa/
H A Ddsa_priv.h103 int dsa_legacy_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],
108 int dsa_legacy_fdb_del(struct ndmsg *ndm, struct nlattr *tb[],
H A Dslave.c193 struct ndmsg *ndm; in dsa_slave_port_fdb_do_dump() local
199 sizeof(*ndm), NLM_F_MULTI); in dsa_slave_port_fdb_do_dump()
203 ndm = nlmsg_data(nlh); in dsa_slave_port_fdb_do_dump()
204 ndm->ndm_family = AF_BRIDGE; in dsa_slave_port_fdb_do_dump()
205 ndm->ndm_pad1 = 0; in dsa_slave_port_fdb_do_dump()
206 ndm->ndm_pad2 = 0; in dsa_slave_port_fdb_do_dump()
207 ndm->ndm_flags = NTF_SELF; in dsa_slave_port_fdb_do_dump()
208 ndm->ndm_type = 0; in dsa_slave_port_fdb_do_dump()
209 ndm->ndm_ifindex = dump->dev->ifindex; in dsa_slave_port_fdb_do_dump()
210 ndm in dsa_slave_port_fdb_do_dump()
1595 dsa_legacy_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) dsa_legacy_fdb_add() argument
1606 dsa_legacy_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, const unsigned char *addr, u16 vid) dsa_legacy_fdb_del() argument
[all...]
/kernel/linux/linux-5.10/drivers/staging/fsl-dpaa2/ethsw/
H A Dethsw.c336 static int dpaa2_switch_port_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in dpaa2_switch_port_fdb_add() argument
349 static int dpaa2_switch_port_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in dpaa2_switch_port_fdb_del() argument
602 struct ndmsg *ndm; in dpaa2_switch_fdb_dump_nl() local
608 sizeof(*ndm), NLM_F_MULTI); in dpaa2_switch_fdb_dump_nl()
612 ndm = nlmsg_data(nlh); in dpaa2_switch_fdb_dump_nl()
613 ndm->ndm_family = AF_BRIDGE; in dpaa2_switch_fdb_dump_nl()
614 ndm->ndm_pad1 = 0; in dpaa2_switch_fdb_dump_nl()
615 ndm->ndm_pad2 = 0; in dpaa2_switch_fdb_dump_nl()
616 ndm->ndm_flags = NTF_SELF; in dpaa2_switch_fdb_dump_nl()
617 ndm in dpaa2_switch_fdb_dump_nl()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mscc/
H A Docelot_net.c730 static int ocelot_port_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in ocelot_port_fdb_add() argument
744 static int ocelot_port_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in ocelot_port_fdb_del() argument
764 struct ndmsg *ndm; in ocelot_port_fdb_do_dump() local
770 sizeof(*ndm), NLM_F_MULTI); in ocelot_port_fdb_do_dump()
774 ndm = nlmsg_data(nlh); in ocelot_port_fdb_do_dump()
775 ndm->ndm_family = AF_BRIDGE; in ocelot_port_fdb_do_dump()
776 ndm->ndm_pad1 = 0; in ocelot_port_fdb_do_dump()
777 ndm->ndm_pad2 = 0; in ocelot_port_fdb_do_dump()
778 ndm->ndm_flags = NTF_SELF; in ocelot_port_fdb_do_dump()
779 ndm in ocelot_port_fdb_do_dump()
[all...]
/kernel/linux/linux-5.10/drivers/net/vxlan/
H A Dvxlan_core.c266 struct ndmsg *ndm; in vxlan_fdb_info() local
270 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in vxlan_fdb_info()
274 ndm = nlmsg_data(nlh); in vxlan_fdb_info()
275 memset(ndm, 0, sizeof(*ndm)); in vxlan_fdb_info()
290 ndm->ndm_family = send_ip ? rdst->remote_ip.sa.sa_family : AF_INET; in vxlan_fdb_info()
292 ndm->ndm_family = nh_family; in vxlan_fdb_info()
296 ndm->ndm_family = AF_BRIDGE; in vxlan_fdb_info()
297 ndm->ndm_state = fdb->state; in vxlan_fdb_info()
298 ndm in vxlan_fdb_info()
1292 vxlan_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) vxlan_fdb_add() argument
1368 vxlan_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, const unsigned char *addr, u16 vid) vxlan_fdb_delete() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/vxlan/
H A Dvxlan_core.c160 struct ndmsg *ndm; in vxlan_fdb_info() local
164 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in vxlan_fdb_info()
168 ndm = nlmsg_data(nlh); in vxlan_fdb_info()
169 memset(ndm, 0, sizeof(*ndm)); in vxlan_fdb_info()
184 ndm->ndm_family = send_ip ? rdst->remote_ip.sa.sa_family : AF_INET; in vxlan_fdb_info()
186 ndm->ndm_family = nh_family; in vxlan_fdb_info()
190 ndm->ndm_family = AF_BRIDGE; in vxlan_fdb_info()
191 ndm->ndm_state = fdb->state; in vxlan_fdb_info()
192 ndm in vxlan_fdb_info()
1245 vxlan_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) vxlan_fdb_add() argument
1321 vxlan_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, const unsigned char *addr, u16 vid, struct netlink_ext_ack *extack) vxlan_fdb_delete() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch.c787 struct ndmsg *ndm; in dpaa2_switch_fdb_dump_nl() local
793 sizeof(*ndm), NLM_F_MULTI); in dpaa2_switch_fdb_dump_nl()
797 ndm = nlmsg_data(nlh); in dpaa2_switch_fdb_dump_nl()
798 ndm->ndm_family = AF_BRIDGE; in dpaa2_switch_fdb_dump_nl()
799 ndm->ndm_pad1 = 0; in dpaa2_switch_fdb_dump_nl()
800 ndm->ndm_pad2 = 0; in dpaa2_switch_fdb_dump_nl()
801 ndm->ndm_flags = NTF_SELF; in dpaa2_switch_fdb_dump_nl()
802 ndm->ndm_type = 0; in dpaa2_switch_fdb_dump_nl()
803 ndm->ndm_ifindex = dump->dev->ifindex; in dpaa2_switch_fdb_dump_nl()
804 ndm in dpaa2_switch_fdb_dump_nl()
[all...]
/kernel/linux/linux-6.6/net/dsa/
H A Dslave.c511 struct ndmsg *ndm; in dsa_slave_port_fdb_do_dump() local
517 sizeof(*ndm), NLM_F_MULTI); in dsa_slave_port_fdb_do_dump()
521 ndm = nlmsg_data(nlh); in dsa_slave_port_fdb_do_dump()
522 ndm->ndm_family = AF_BRIDGE; in dsa_slave_port_fdb_do_dump()
523 ndm->ndm_pad1 = 0; in dsa_slave_port_fdb_do_dump()
524 ndm->ndm_pad2 = 0; in dsa_slave_port_fdb_do_dump()
525 ndm->ndm_flags = NTF_SELF; in dsa_slave_port_fdb_do_dump()
526 ndm->ndm_type = 0; in dsa_slave_port_fdb_do_dump()
527 ndm->ndm_ifindex = dump->dev->ifindex; in dsa_slave_port_fdb_do_dump()
528 ndm in dsa_slave_port_fdb_do_dump()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_main.c371 static int qlcnic_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in qlcnic_fdb_del() argument
379 return ndo_dflt_fdb_del(ndm, tb, netdev, addr, vid); in qlcnic_fdb_del()
396 static int qlcnic_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in qlcnic_fdb_add() argument
405 return ndo_dflt_fdb_add(ndm, tb, netdev, addr, vid, flags); in qlcnic_fdb_add()
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_main.c368 static int qlcnic_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in qlcnic_fdb_del() argument
377 return ndo_dflt_fdb_del(ndm, tb, netdev, addr, vid); in qlcnic_fdb_del()
394 static int qlcnic_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in qlcnic_fdb_add() argument
403 return ndo_dflt_fdb_add(ndm, tb, netdev, addr, vid, flags); in qlcnic_fdb_add()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
H A Dice_main.c5057 * @ndm: the input from the stack
5066 ice_fdb_add(struct ndmsg *ndm, struct nlattr __always_unused *tb[], in ice_fdb_add() argument
5076 if (ndm->ndm_state && !(ndm->ndm_state & NUD_PERMANENT)) { in ice_fdb_add()
5097 * @ndm: the input from the stack
5104 ice_fdb_del(struct ndmsg *ndm, __always_unused struct nlattr *tb[], in ice_fdb_del() argument
5110 if (ndm->ndm_state & NUD_PERMANENT) { in ice_fdb_del()
/kernel/linux/linux-5.10/drivers/net/
H A Dmacvlan.c987 static int macvlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in macvlan_fdb_add() argument
1013 static int macvlan_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in macvlan_fdb_del() argument

Completed in 60 milliseconds

12