Home
last modified time | relevance | path

Searched refs:ndm (Results 1 – 18 of 18) sorted by relevance

/linux-6.1.9/net/bridge/ !
Dbr_fdb.c107 struct ndmsg *ndm; in fdb_fill_info() local
109 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in fdb_fill_info()
113 ndm = nlmsg_data(nlh); in fdb_fill_info()
114 ndm->ndm_family = AF_BRIDGE; in fdb_fill_info()
115 ndm->ndm_pad1 = 0; in fdb_fill_info()
116 ndm->ndm_pad2 = 0; in fdb_fill_info()
117 ndm->ndm_flags = 0; in fdb_fill_info()
118 ndm->ndm_type = 0; in fdb_fill_info()
119 ndm->ndm_ifindex = dst ? dst->dev->ifindex : br->dev->ifindex; in fdb_fill_info()
120 ndm->ndm_state = fdb_to_nud(br, fdb); in fdb_fill_info()
[all …]
Dbr_private.h795 int br_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[],
798 int br_fdb_delete_bulk(struct ndmsg *ndm, struct nlattr *tb[],
/linux-6.1.9/net/mctp/ !
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()
/linux-6.1.9/net/core/ !
Dneighbour.c1896 struct ndmsg *ndm; in neigh_delete() local
1904 if (nlmsg_len(nlh) < sizeof(*ndm)) in neigh_delete()
1907 dst_attr = nlmsg_find_attr(nlh, sizeof(*ndm), NDA_DST); in neigh_delete()
1913 ndm = nlmsg_data(nlh); in neigh_delete()
1914 if (ndm->ndm_ifindex) { in neigh_delete()
1915 dev = __dev_get_by_index(net, ndm->ndm_ifindex); in neigh_delete()
1922 tbl = neigh_find_table(ndm->ndm_family); in neigh_delete()
1931 if (ndm->ndm_flags & NTF_PROXY) { in neigh_delete()
1963 struct ndmsg *ndm; in neigh_add() local
1974 err = nlmsg_parse_deprecated(nlh, sizeof(*ndm), tb, NDA_MAX, in neigh_add()
[all …]
Drtnetlink.c3968 struct ndmsg *ndm; in nlmsg_populate_fdb_fill() local
3970 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ndm), nlflags); in nlmsg_populate_fdb_fill()
3974 ndm = nlmsg_data(nlh); in nlmsg_populate_fdb_fill()
3975 ndm->ndm_family = AF_BRIDGE; in nlmsg_populate_fdb_fill()
3976 ndm->ndm_pad1 = 0; in nlmsg_populate_fdb_fill()
3977 ndm->ndm_pad2 = 0; in nlmsg_populate_fdb_fill()
3978 ndm->ndm_flags = flags; in nlmsg_populate_fdb_fill()
3979 ndm->ndm_type = 0; in nlmsg_populate_fdb_fill()
3980 ndm->ndm_ifindex = dev->ifindex; in nlmsg_populate_fdb_fill()
3981 ndm->ndm_state = ndm_state; in nlmsg_populate_fdb_fill()
[all …]
/linux-6.1.9/include/trace/events/ !
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;
/linux-6.1.9/include/linux/ !
Drtnetlink.h119 extern int ndo_dflt_fdb_add(struct ndmsg *ndm,
125 extern int ndo_dflt_fdb_del(struct ndmsg *ndm,
Dnetdevice.h1540 int (*ndo_fdb_add)(struct ndmsg *ndm,
1547 int (*ndo_fdb_del)(struct ndmsg *ndm,
1552 int (*ndo_fdb_del_bulk)(struct ndmsg *ndm,
/linux-6.1.9/drivers/net/ethernet/mscc/ !
Docelot_net.c739 static int ocelot_port_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in ocelot_port_fdb_add() argument
753 static int ocelot_port_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in ocelot_port_fdb_del() argument
773 struct ndmsg *ndm; in ocelot_port_fdb_do_dump() local
779 sizeof(*ndm), NLM_F_MULTI); in ocelot_port_fdb_do_dump()
783 ndm = nlmsg_data(nlh); in ocelot_port_fdb_do_dump()
784 ndm->ndm_family = AF_BRIDGE; in ocelot_port_fdb_do_dump()
785 ndm->ndm_pad1 = 0; in ocelot_port_fdb_do_dump()
786 ndm->ndm_pad2 = 0; in ocelot_port_fdb_do_dump()
787 ndm->ndm_flags = NTF_SELF; in ocelot_port_fdb_do_dump()
788 ndm->ndm_type = 0; in ocelot_port_fdb_do_dump()
[all …]
/linux-6.1.9/drivers/net/vxlan/ !
Dvxlan_core.c207 struct ndmsg *ndm; in vxlan_fdb_info() local
211 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in vxlan_fdb_info()
215 ndm = nlmsg_data(nlh); in vxlan_fdb_info()
216 memset(ndm, 0, sizeof(*ndm)); in vxlan_fdb_info()
231 ndm->ndm_family = send_ip ? rdst->remote_ip.sa.sa_family : AF_INET; in vxlan_fdb_info()
233 ndm->ndm_family = nh_family; in vxlan_fdb_info()
237 ndm->ndm_family = AF_BRIDGE; in vxlan_fdb_info()
238 ndm->ndm_state = fdb->state; in vxlan_fdb_info()
239 ndm->ndm_ifindex = vxlan->dev->ifindex; in vxlan_fdb_info()
240 ndm->ndm_flags = fdb->flags; in vxlan_fdb_info()
[all …]
/linux-6.1.9/drivers/net/ethernet/freescale/dpaa2/ !
Ddpaa2-switch.c779 struct ndmsg *ndm; in dpaa2_switch_fdb_dump_nl() local
785 sizeof(*ndm), NLM_F_MULTI); in dpaa2_switch_fdb_dump_nl()
789 ndm = nlmsg_data(nlh); in dpaa2_switch_fdb_dump_nl()
790 ndm->ndm_family = AF_BRIDGE; in dpaa2_switch_fdb_dump_nl()
791 ndm->ndm_pad1 = 0; in dpaa2_switch_fdb_dump_nl()
792 ndm->ndm_pad2 = 0; in dpaa2_switch_fdb_dump_nl()
793 ndm->ndm_flags = NTF_SELF; in dpaa2_switch_fdb_dump_nl()
794 ndm->ndm_type = 0; in dpaa2_switch_fdb_dump_nl()
795 ndm->ndm_ifindex = dump->dev->ifindex; in dpaa2_switch_fdb_dump_nl()
796 ndm->ndm_state = is_dynamic ? NUD_REACHABLE : NUD_NOARP; in dpaa2_switch_fdb_dump_nl()
/linux-6.1.9/net/dsa/ !
Dslave.c402 struct ndmsg *ndm; in dsa_slave_port_fdb_do_dump() local
408 sizeof(*ndm), NLM_F_MULTI); in dsa_slave_port_fdb_do_dump()
412 ndm = nlmsg_data(nlh); in dsa_slave_port_fdb_do_dump()
413 ndm->ndm_family = AF_BRIDGE; in dsa_slave_port_fdb_do_dump()
414 ndm->ndm_pad1 = 0; in dsa_slave_port_fdb_do_dump()
415 ndm->ndm_pad2 = 0; in dsa_slave_port_fdb_do_dump()
416 ndm->ndm_flags = NTF_SELF; in dsa_slave_port_fdb_do_dump()
417 ndm->ndm_type = 0; in dsa_slave_port_fdb_do_dump()
418 ndm->ndm_ifindex = dump->dev->ifindex; in dsa_slave_port_fdb_do_dump()
419 ndm->ndm_state = is_static ? NUD_NOARP : NUD_REACHABLE; in dsa_slave_port_fdb_do_dump()
/linux-6.1.9/drivers/net/ !
Dmacvlan.c995 static int macvlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in macvlan_fdb_add() argument
1021 static int macvlan_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in macvlan_fdb_del() argument
/linux-6.1.9/drivers/net/ethernet/qlogic/qlcnic/ !
Dqlcnic_main.c369 static int qlcnic_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in qlcnic_fdb_del() argument
378 return ndo_dflt_fdb_del(ndm, tb, netdev, addr, vid); in qlcnic_fdb_del()
395 static int qlcnic_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in qlcnic_fdb_add() argument
404 return ndo_dflt_fdb_add(ndm, tb, netdev, addr, vid, flags); in qlcnic_fdb_add()
/linux-6.1.9/drivers/net/ethernet/intel/ice/ !
Dice_main.c5720 ice_fdb_add(struct ndmsg *ndm, struct nlattr __always_unused *tb[], in ice_fdb_add() argument
5730 if (ndm->ndm_state && !(ndm->ndm_state & NUD_PERMANENT)) { in ice_fdb_add()
5759 ice_fdb_del(struct ndmsg *ndm, __always_unused struct nlattr *tb[], in ice_fdb_del() argument
5765 if (ndm->ndm_state & NUD_PERMANENT) { in ice_fdb_del()
/linux-6.1.9/drivers/net/ethernet/intel/igb/ !
Digb_main.c2488 static int igb_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in igb_ndo_fdb_add() argument
2503 return ndo_dflt_fdb_add(ndm, tb, dev, addr, vid, flags); in igb_ndo_fdb_add()
/linux-6.1.9/drivers/net/ethernet/intel/i40e/ !
Di40e_main.c13064 static int i40e_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in i40e_ndo_fdb_add() argument
13085 if (ndm->ndm_state && !(ndm->ndm_state & NUD_PERMANENT)) { in i40e_ndo_fdb_add()
/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/ !
Dixgbe_main.c9939 static int ixgbe_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in ixgbe_ndo_fdb_add() argument
9954 return ndo_dflt_fdb_add(ndm, tb, dev, addr, vid, flags); in ixgbe_ndo_fdb_add()