Lines Matching refs:ifsm
5175 struct if_stats_msg *ifsm; in rtnl_fill_statsinfo() local
5183 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ifsm), flags); in rtnl_fill_statsinfo()
5187 ifsm = nlmsg_data(nlh); in rtnl_fill_statsinfo()
5188 ifsm->family = PF_UNSPEC; in rtnl_fill_statsinfo()
5189 ifsm->pad1 = 0; in rtnl_fill_statsinfo()
5190 ifsm->pad2 = 0; in rtnl_fill_statsinfo()
5191 ifsm->ifindex = dev->ifindex; in rtnl_fill_statsinfo()
5192 ifsm->filter_mask = filter_mask; in rtnl_fill_statsinfo()
5387 struct if_stats_msg *ifsm; in rtnl_valid_stats_req() local
5389 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifsm))) { in rtnl_valid_stats_req()
5397 ifsm = nlmsg_data(nlh); in rtnl_valid_stats_req()
5402 if (ifsm->pad1 || ifsm->pad2 || (is_dump && ifsm->ifindex)) { in rtnl_valid_stats_req()
5406 if (nlmsg_attrlen(nlh, sizeof(*ifsm))) { in rtnl_valid_stats_req()
5410 if (ifsm->filter_mask >= IFLA_STATS_FILTER_BIT(IFLA_STATS_MAX + 1)) { in rtnl_valid_stats_req()
5424 struct if_stats_msg *ifsm; in rtnl_stats_get() local
5434 ifsm = nlmsg_data(nlh); in rtnl_stats_get()
5435 if (ifsm->ifindex > 0) in rtnl_stats_get()
5436 dev = __dev_get_by_index(net, ifsm->ifindex); in rtnl_stats_get()
5443 filter_mask = ifsm->filter_mask; in rtnl_stats_get()
5471 struct if_stats_msg *ifsm; in rtnl_stats_dump() local
5488 ifsm = nlmsg_data(cb->nlh); in rtnl_stats_dump()
5489 filter_mask = ifsm->filter_mask; in rtnl_stats_dump()