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

/linux-master/net/mctp/
H A Dneigh.c121 struct ndmsg *ndm; local
128 rc = nlmsg_parse(nlh, sizeof(*ndm), tb, NDA_MAX, nd_mctp_policy,
154 ndm = nlmsg_data(nlh);
156 dev = __dev_get_by_index(net, ndm->ndm_ifindex);
180 struct ndmsg *ndm; local
184 rc = nlmsg_parse(nlh, sizeof(*ndm), tb, NDA_MAX, nd_mctp_policy,
197 ndm = nlmsg_data(nlh);
198 dev = __dev_get_by_index(net, ndm->ndm_ifindex);
/linux-master/net/bridge/
H A Dbr_fdb.c104 struct ndmsg *ndm; local
107 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags);
111 ndm = nlmsg_data(nlh);
112 ndm->ndm_family = AF_BRIDGE;
113 ndm->ndm_pad1 = 0;
114 ndm->ndm_pad2 = 0;
115 ndm->ndm_flags = 0;
116 ndm->ndm_type = 0;
117 ndm->ndm_ifindex = dst ? dst->dev->ifindex : br->dev->ifindex;
118 ndm
693 struct ndmsg *ndm = nlmsg_data(nlh); local
1062 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[]) argument
1159 __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) argument
1202 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) argument
1322 br_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, const unsigned char *addr, u16 vid, struct netlink_ext_ack *extack) argument
[all...]
H A Dbr_private.h854 int br_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[],
/linux-master/net/core/
H A Dneighbour.c1898 struct ndmsg *ndm; local
1906 if (nlmsg_len(nlh) < sizeof(*ndm))
1909 dst_attr = nlmsg_find_attr(nlh, sizeof(*ndm), NDA_DST);
1915 ndm = nlmsg_data(nlh);
1916 if (ndm->ndm_ifindex) {
1917 dev = __dev_get_by_index(net, ndm->ndm_ifindex);
1924 tbl = neigh_find_table(ndm->ndm_family);
1933 if (ndm->ndm_flags & NTF_PROXY) {
1965 struct ndmsg *ndm; local
1976 err = nlmsg_parse_deprecated(nlh, sizeof(*ndm), t
2569 struct ndmsg *ndm; local
2630 struct ndmsg *ndm; local
2805 struct ndmsg *ndm; local
2909 struct ndmsg *ndm; local
[all...]
H A Drtnetlink.c4118 struct ndmsg *ndm; local
4120 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ndm), nlflags);
4124 ndm = nlmsg_data(nlh);
4125 ndm->ndm_family = AF_BRIDGE;
4126 ndm->ndm_pad1 = 0;
4127 ndm->ndm_pad2 = 0;
4128 ndm->ndm_flags = flags;
4129 ndm->ndm_type = 0;
4130 ndm->ndm_ifindex = dev->ifindex;
4131 ndm
4182 ndo_dflt_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, const unsigned char *addr, u16 vid, u16 flags) argument
4247 struct ndmsg *ndm; local
4327 ndo_dflt_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev, const unsigned char *addr, u16 vid) argument
4357 struct ndmsg *ndm; local
4523 struct ndmsg *ndm; local
4712 struct ndmsg *ndm; local
[all...]
/linux-master/include/linux/
H A Drtnetlink.h131 extern int ndo_dflt_fdb_add(struct ndmsg *ndm,
137 extern int ndo_dflt_fdb_del(struct ndmsg *ndm,
H A Dnetdevice.h1225 * int (*ndo_fdb_add)(struct ndmsg *ndm, struct nlattr *tb[],
1230 * int (*ndo_fdb_del)(struct ndmsg *ndm, struct nlattr *tb[],
1500 int (*ndo_fdb_add)(struct ndmsg *ndm,
1507 int (*ndo_fdb_del)(struct ndmsg *ndm,
/linux-master/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;
/linux-master/drivers/net/ethernet/mscc/
H A Docelot_net.c730 static int ocelot_port_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], argument
744 static int ocelot_port_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], argument
764 struct ndmsg *ndm; local
770 sizeof(*ndm), NLM_F_MULTI);
774 ndm = nlmsg_data(nlh);
775 ndm->ndm_family = AF_BRIDGE;
776 ndm->ndm_pad1 = 0;
777 ndm->ndm_pad2 = 0;
778 ndm->ndm_flags = NTF_SELF;
779 ndm
[all...]
/linux-master/drivers/net/vxlan/
H A Dvxlan_core.c160 struct ndmsg *ndm; local
164 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags);
168 ndm = nlmsg_data(nlh);
169 memset(ndm, 0, sizeof(*ndm));
184 ndm->ndm_family = send_ip ? rdst->remote_ip.sa.sa_family : AF_INET;
186 ndm->ndm_family = nh_family;
190 ndm->ndm_family = AF_BRIDGE;
191 ndm->ndm_state = fdb->state;
192 ndm
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) 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) argument
3060 struct ndmsg *ndm = nlmsg_data(nlh); local
[all...]
/linux-master/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch.c787 struct ndmsg *ndm; local
793 sizeof(*ndm), NLM_F_MULTI);
797 ndm = nlmsg_data(nlh);
798 ndm->ndm_family = AF_BRIDGE;
799 ndm->ndm_pad1 = 0;
800 ndm->ndm_pad2 = 0;
801 ndm->ndm_flags = NTF_SELF;
802 ndm->ndm_type = 0;
803 ndm->ndm_ifindex = dump->dev->ifindex;
804 ndm
[all...]
/linux-master/net/dsa/
H A Duser.c518 struct ndmsg *ndm; local
524 sizeof(*ndm), NLM_F_MULTI);
528 ndm = nlmsg_data(nlh);
529 ndm->ndm_family = AF_BRIDGE;
530 ndm->ndm_pad1 = 0;
531 ndm->ndm_pad2 = 0;
532 ndm->ndm_flags = NTF_SELF;
533 ndm->ndm_type = 0;
534 ndm->ndm_ifindex = dump->dev->ifindex;
535 ndm
[all...]
/linux-master/drivers/net/
H A Dmacvlan.c1023 static int macvlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], argument
1049 static int macvlan_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], argument
/linux-master/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_main.c368 static int qlcnic_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], argument
377 return ndo_dflt_fdb_del(ndm, tb, netdev, addr, vid);
394 static int qlcnic_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], argument
403 return ndo_dflt_fdb_add(ndm, tb, netdev, addr, vid, flags);
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_main.c5955 * @ndm: the input from the stack
5964 ice_fdb_add(struct ndmsg *ndm, struct nlattr __always_unused *tb[], argument
5974 if (ndm->ndm_state && !(ndm->ndm_state & NUD_PERMANENT)) {
5995 * @ndm: the input from the stack
6003 ice_fdb_del(struct ndmsg *ndm, __always_unused struct nlattr *tb[], argument
6009 if (ndm->ndm_state & NUD_PERMANENT) {
/linux-master/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_main.c9957 static int ixgbe_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], argument
9972 return ndo_dflt_fdb_add(ndm, tb, dev, addr, vid, flags);
/linux-master/drivers/net/ethernet/intel/igb/
H A Digb_main.c2513 static int igb_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], argument
2528 return ndo_dflt_fdb_add(ndm, tb, dev, addr, vid, flags);
/linux-master/drivers/net/ethernet/intel/i40e/
H A Di40e_main.c13033 * @ndm: the input from the stack
13041 static int i40e_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], argument
13062 if (ndm->ndm_state && !(ndm->ndm_state & NUD_PERMANENT)) {

Completed in 443 milliseconds