/kernel/linux/linux-6.6/net/ethtool/ |
H A D | rss.c | 13 u32 indir_size; member 69 data->indir_size = 0; in rss_prepare_data() 72 data->indir_size = ops->get_rxfh_indir_size(dev); in rss_prepare_data() 76 indir_bytes = data->indir_size * sizeof(u32); in rss_prepare_data() 84 if (data->indir_size) in rss_prepare_data() 114 nla_total_size(sizeof(u32) * data->indir_size) + /* _RSS_INDIR */ in rss_reply_size() 128 (data->indir_size && in rss_fill_reply() 130 sizeof(u32) * data->indir_size, data->indir_table)) || in rss_fill_reply()
|
H A D | ioctl.c | 1193 user_indir_size = rxfh.indir_size; in ethtool_get_rxfh() 1203 rxfh.indir_size = dev_indir_size; in ethtool_get_rxfh() 1282 if ((rxfh.indir_size && in ethtool_set_rxfh() 1283 rxfh.indir_size != ETH_RXFH_INDIR_NO_CHANGE && in ethtool_set_rxfh() 1284 rxfh.indir_size != dev_indir_size) || in ethtool_set_rxfh() 1286 (rxfh.indir_size == ETH_RXFH_INDIR_NO_CHANGE && in ethtool_set_rxfh() 1290 if (rxfh.indir_size != ETH_RXFH_INDIR_NO_CHANGE) in ethtool_set_rxfh() 1302 /* rxfh.indir_size == 0 means reset the indir table to default (master in ethtool_set_rxfh() 1304 * rxfh.indir_size == ETH_RXFH_INDIR_NO_CHANGE means leave it unchanged. in ethtool_set_rxfh() 1306 if (rxfh.indir_size in ethtool_set_rxfh() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_port.c | 591 u32 indir_size; in hinic_rss_set_indir_tbl() local 622 indir_size = HINIC_RSS_INDIR_SIZE / 2; in hinic_rss_set_indir_tbl() 624 indir_tbl->size = cpu_to_be32(indir_size); in hinic_rss_set_indir_tbl() 635 indir_tbl->offset = cpu_to_be32(indir_size); in hinic_rss_set_indir_tbl() 636 indir_tbl->size = cpu_to_be32(indir_size); in hinic_rss_set_indir_tbl() 637 memcpy(&indir_tbl->entry[0], &indir_tbl->entry[indir_size], indir_size); in hinic_rss_set_indir_tbl()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_port.c | 606 u32 indir_size; in hinic_rss_set_indir_tbl() local 637 indir_size = HINIC_RSS_INDIR_SIZE / 2; in hinic_rss_set_indir_tbl() 639 indir_tbl->size = cpu_to_be32(indir_size); in hinic_rss_set_indir_tbl() 650 indir_tbl->offset = cpu_to_be32(indir_size); in hinic_rss_set_indir_tbl() 651 indir_tbl->size = cpu_to_be32(indir_size); in hinic_rss_set_indir_tbl() 652 memcpy(&indir_tbl->entry[0], &indir_tbl->entry[indir_size], indir_size); in hinic_rss_set_indir_tbl()
|
/kernel/linux/linux-5.10/net/ethtool/ |
H A D | ioctl.c | 1183 user_indir_size = rxfh.indir_size; in ethtool_get_rxfh() 1193 rxfh.indir_size = dev_indir_size; in ethtool_get_rxfh() 1272 if ((rxfh.indir_size && in ethtool_set_rxfh() 1273 rxfh.indir_size != ETH_RXFH_INDIR_NO_CHANGE && in ethtool_set_rxfh() 1274 rxfh.indir_size != dev_indir_size) || in ethtool_set_rxfh() 1276 (rxfh.indir_size == ETH_RXFH_INDIR_NO_CHANGE && in ethtool_set_rxfh() 1280 if (rxfh.indir_size != ETH_RXFH_INDIR_NO_CHANGE) in ethtool_set_rxfh() 1292 /* rxfh.indir_size == 0 means reset the indir table to default (master in ethtool_set_rxfh() 1294 * rxfh.indir_size == ETH_RXFH_INDIR_NO_CHANGE means leave it unchanged. in ethtool_set_rxfh() 1296 if (rxfh.indir_size in ethtool_set_rxfh() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_enet.c | 1610 int indir_size; in hns_nic_clear_all_rx_fetch() local 1619 indir_size = ops->get_rss_indir_size(h) * sizeof(*org_indir); in hns_nic_clear_all_rx_fetch() 1620 org_indir = kzalloc(indir_size, GFP_KERNEL); in hns_nic_clear_all_rx_fetch() 1627 cur_indir = kzalloc(indir_size, GFP_KERNEL); in hns_nic_clear_all_rx_fetch() 1659 for (j = 0; j < indir_size / sizeof(*org_indir); j++) in hns_nic_clear_all_rx_fetch()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_enet.c | 1633 int indir_size; in hns_nic_clear_all_rx_fetch() local 1642 indir_size = ops->get_rss_indir_size(h) * sizeof(*org_indir); in hns_nic_clear_all_rx_fetch() 1643 org_indir = kzalloc(indir_size, GFP_KERNEL); in hns_nic_clear_all_rx_fetch() 1650 cur_indir = kzalloc(indir_size, GFP_KERNEL); in hns_nic_clear_all_rx_fetch() 1682 for (j = 0; j < indir_size / sizeof(*org_indir); j++) in hns_nic_clear_all_rx_fetch()
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
H A D | ethtool.h | 352 __u32 indir_size; member
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
H A D | ethtool.h | 1128 * @indir_size: On entry, the array size of the user buffer for the 1139 * of @indir_size __u32 elements, followed by hash key of @key_size 1142 * For %ETHTOOL_GRSSH, a @indir_size and key_size of zero means that only the 1143 * size should be returned. For %ETHTOOL_SRSSH, an @indir_size of 1145 * and a @indir_size of zero means the indir table should be reset to default 1152 __u32 indir_size; member
|
/kernel/linux/linux-6.6/include/uapi/linux/ |
H A D | ethtool.h | 1260 * @indir_size: On entry, the array size of the user buffer for the 1272 * of @indir_size __u32 elements, followed by hash key of @key_size 1275 * For %ETHTOOL_GRSSH, a @indir_size and key_size of zero means that only the 1276 * size should be returned. For %ETHTOOL_SRSSH, an @indir_size of 1278 * and a @indir_size of zero means the indir table should be reset to default 1285 __u32 indir_size; member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
H A D | ethtool.h | 398 __u32 indir_size; member
|
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/ |
H A D | ethtool.h | 398 __u32 indir_size; member
|