Home
last modified time | relevance | path

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

/Linux-v4.19/net/bridge/
Dbr_fdb.c640 struct ndmsg *ndm; in fdb_fill_info() local
642 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in fdb_fill_info()
646 ndm = nlmsg_data(nlh); in fdb_fill_info()
647 ndm->ndm_family = AF_BRIDGE; in fdb_fill_info()
648 ndm->ndm_pad1 = 0; in fdb_fill_info()
649 ndm->ndm_pad2 = 0; in fdb_fill_info()
650 ndm->ndm_flags = 0; in fdb_fill_info()
651 ndm->ndm_type = 0; in fdb_fill_info()
652 ndm->ndm_ifindex = fdb->dst ? fdb->dst->dev->ifindex : br->dev->ifindex; in fdb_fill_info()
653 ndm->ndm_state = fdb_to_nud(br, fdb); in fdb_fill_info()
[all …]
Dbr_private.h552 int br_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[],
/Linux-v4.19/net/core/
Dneighbour.c1653 struct ndmsg *ndm; in neigh_delete() local
1661 if (nlmsg_len(nlh) < sizeof(*ndm)) in neigh_delete()
1664 dst_attr = nlmsg_find_attr(nlh, sizeof(*ndm), NDA_DST); in neigh_delete()
1668 ndm = nlmsg_data(nlh); in neigh_delete()
1669 if (ndm->ndm_ifindex) { in neigh_delete()
1670 dev = __dev_get_by_index(net, ndm->ndm_ifindex); in neigh_delete()
1677 tbl = neigh_find_table(ndm->ndm_family); in neigh_delete()
1684 if (ndm->ndm_flags & NTF_PROXY) { in neigh_delete()
1716 struct ndmsg *ndm; in neigh_add() local
1725 err = nlmsg_parse(nlh, sizeof(*ndm), tb, NDA_MAX, NULL, extack); in neigh_add()
[all …]
Drtnetlink.c3381 struct ndmsg *ndm; in nlmsg_populate_fdb_fill() local
3383 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ndm), nlflags); in nlmsg_populate_fdb_fill()
3387 ndm = nlmsg_data(nlh); in nlmsg_populate_fdb_fill()
3388 ndm->ndm_family = AF_BRIDGE; in nlmsg_populate_fdb_fill()
3389 ndm->ndm_pad1 = 0; in nlmsg_populate_fdb_fill()
3390 ndm->ndm_pad2 = 0; in nlmsg_populate_fdb_fill()
3391 ndm->ndm_flags = flags; in nlmsg_populate_fdb_fill()
3392 ndm->ndm_type = 0; in nlmsg_populate_fdb_fill()
3393 ndm->ndm_ifindex = dev->ifindex; in nlmsg_populate_fdb_fill()
3394 ndm->ndm_state = ndm_state; in nlmsg_populate_fdb_fill()
[all …]
/Linux-v4.19/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-v4.19/include/linux/
Drtnetlink.h111 extern int ndo_dflt_fdb_add(struct ndmsg *ndm,
117 extern int ndo_dflt_fdb_del(struct ndmsg *ndm,
Dnetdevice.h1352 int (*ndo_fdb_add)(struct ndmsg *ndm,
1358 int (*ndo_fdb_del)(struct ndmsg *ndm,
/Linux-v4.19/net/dsa/
Dslave.c200 struct ndmsg *ndm; in dsa_slave_port_fdb_do_dump() local
206 sizeof(*ndm), NLM_F_MULTI); in dsa_slave_port_fdb_do_dump()
210 ndm = nlmsg_data(nlh); in dsa_slave_port_fdb_do_dump()
211 ndm->ndm_family = AF_BRIDGE; in dsa_slave_port_fdb_do_dump()
212 ndm->ndm_pad1 = 0; in dsa_slave_port_fdb_do_dump()
213 ndm->ndm_pad2 = 0; in dsa_slave_port_fdb_do_dump()
214 ndm->ndm_flags = NTF_SELF; in dsa_slave_port_fdb_do_dump()
215 ndm->ndm_type = 0; in dsa_slave_port_fdb_do_dump()
216 ndm->ndm_ifindex = dump->dev->ifindex; in dsa_slave_port_fdb_do_dump()
217 ndm->ndm_state = is_static ? NUD_NOARP : NUD_REACHABLE; in dsa_slave_port_fdb_do_dump()
[all …]
Ddsa_priv.h102 int dsa_legacy_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],
106 int dsa_legacy_fdb_del(struct ndmsg *ndm, struct nlattr *tb[],
/Linux-v4.19/drivers/net/ethernet/mscc/
Docelot.c714 static int ocelot_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in ocelot_fdb_add() argument
739 static int ocelot_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in ocelot_fdb_del() argument
762 struct ndmsg *ndm; in ocelot_fdb_do_dump() local
768 sizeof(*ndm), NLM_F_MULTI); in ocelot_fdb_do_dump()
772 ndm = nlmsg_data(nlh); in ocelot_fdb_do_dump()
773 ndm->ndm_family = AF_BRIDGE; in ocelot_fdb_do_dump()
774 ndm->ndm_pad1 = 0; in ocelot_fdb_do_dump()
775 ndm->ndm_pad2 = 0; in ocelot_fdb_do_dump()
776 ndm->ndm_flags = NTF_SELF; in ocelot_fdb_do_dump()
777 ndm->ndm_type = 0; in ocelot_fdb_do_dump()
[all …]
/Linux-v4.19/drivers/net/
Dvxlan.c280 struct ndmsg *ndm; in vxlan_fdb_info() local
283 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in vxlan_fdb_info()
287 ndm = nlmsg_data(nlh); in vxlan_fdb_info()
288 memset(ndm, 0, sizeof(*ndm)); in vxlan_fdb_info()
295 ndm->ndm_family = send_ip ? rdst->remote_ip.sa.sa_family : AF_INET; in vxlan_fdb_info()
297 ndm->ndm_family = AF_BRIDGE; in vxlan_fdb_info()
298 ndm->ndm_state = fdb->state; in vxlan_fdb_info()
299 ndm->ndm_ifindex = vxlan->dev->ifindex; in vxlan_fdb_info()
300 ndm->ndm_flags = fdb->flags; in vxlan_fdb_info()
301 ndm->ndm_type = RTN_UNICAST; in vxlan_fdb_info()
[all …]
Dmacvlan.c960 static int macvlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in macvlan_fdb_add() argument
985 static int macvlan_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in macvlan_fdb_del() argument
/Linux-v4.19/drivers/net/ethernet/intel/ice/
Dice_main.c3666 static int ice_fdb_add(struct ndmsg *ndm, struct nlattr __always_unused *tb[], in ice_fdb_add() argument
3676 if (ndm->ndm_state && !(ndm->ndm_state & NUD_PERMANENT)) { in ice_fdb_add()
3703 static int ice_fdb_del(struct ndmsg *ndm, __always_unused struct nlattr *tb[], in ice_fdb_del() argument
3709 if (ndm->ndm_state & NUD_PERMANENT) { in ice_fdb_del()
/Linux-v4.19/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_main.c372 static int qlcnic_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in qlcnic_fdb_del() argument
380 return ndo_dflt_fdb_del(ndm, tb, netdev, addr, vid); in qlcnic_fdb_del()
397 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()
/Linux-v4.19/drivers/net/ethernet/intel/igb/
Digb_main.c2487 static int igb_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in igb_ndo_fdb_add() argument
2501 return ndo_dflt_fdb_add(ndm, tb, dev, addr, vid, flags); in igb_ndo_fdb_add()
/Linux-v4.19/drivers/net/ethernet/intel/i40e/
Di40e_main.c11575 static int i40e_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in i40e_ndo_fdb_add() argument
11595 if (ndm->ndm_state && !(ndm->ndm_state & NUD_PERMANENT)) { in i40e_ndo_fdb_add()
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c9789 static int ixgbe_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in ixgbe_ndo_fdb_add() argument
9803 return ndo_dflt_fdb_add(ndm, tb, dev, addr, vid, flags); in ixgbe_ndo_fdb_add()