git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/mlx4: fix Rx packet type offloads
[dpdk.git]
/
app
/
test-pmd
/
config.c
diff --git
a/app/test-pmd/config.c
b/app/test-pmd/config.c
index
926daca
..
cd2ac11
100644
(file)
--- a/
app/test-pmd/config.c
+++ b/
app/test-pmd/config.c
@@
-292,10
+292,13
@@
nic_xstats_display(portid_t port_id)
}
/* Display xstats */
}
/* Display xstats */
- for (idx_xstat = 0; idx_xstat < cnt_xstats; idx_xstat++)
+ for (idx_xstat = 0; idx_xstat < cnt_xstats; idx_xstat++) {
+ if (xstats_hide_zero && !xstats[idx_xstat].value)
+ continue;
printf("%s: %"PRIu64"\n",
xstats_names[idx_xstat].name,
xstats[idx_xstat].value);
printf("%s: %"PRIu64"\n",
xstats_names[idx_xstat].name,
xstats[idx_xstat].value);
+ }
free(xstats_names);
free(xstats);
}
free(xstats_names);
free(xstats);
}
@@
-1497,7
+1500,7
@@
tx_desc_id_is_invalid(uint16_t txdesc_id)
}
static const struct rte_memzone *
}
static const struct rte_memzone *
-ring_dma_zone_lookup(const char *ring_name,
uint8
_t port_id, uint16_t q_id)
+ring_dma_zone_lookup(const char *ring_name,
portid
_t port_id, uint16_t q_id)
{
char mz_name[RTE_MEMZONE_NAMESIZE];
const struct rte_memzone *mz;
{
char mz_name[RTE_MEMZONE_NAMESIZE];
const struct rte_memzone *mz;
@@
-1547,9
+1550,9
@@
ring_rxd_display_dword(union igb_ring_dword dword)
static void
ring_rx_descriptor_display(const struct rte_memzone *ring_mz,
#ifndef RTE_LIBRTE_I40E_16BYTE_RX_DESC
static void
ring_rx_descriptor_display(const struct rte_memzone *ring_mz,
#ifndef RTE_LIBRTE_I40E_16BYTE_RX_DESC
-
uint8
_t port_id,
+
portid
_t port_id,
#else
#else
- __rte_unused
uint8
_t port_id,
+ __rte_unused
portid
_t port_id,
#endif
uint16_t desc_id)
{
#endif
uint16_t desc_id)
{
@@
-1902,7
+1905,7
@@
simple_fwd_config_setup(void)
fwd_streams[i]->rx_queue = 0;
fwd_streams[i]->tx_port = fwd_ports_ids[j];
fwd_streams[i]->tx_queue = 0;
fwd_streams[i]->rx_queue = 0;
fwd_streams[i]->tx_port = fwd_ports_ids[j];
fwd_streams[i]->tx_queue = 0;
- fwd_streams[i]->peer_addr =
j
;
+ fwd_streams[i]->peer_addr =
fwd_streams[i]->tx_port
;
fwd_streams[i]->retry_enabled = retry_enabled;
if (port_topology == PORT_TOPOLOGY_PAIRED) {
fwd_streams[i]->retry_enabled = retry_enabled;
if (port_topology == PORT_TOPOLOGY_PAIRED) {
@@
-1910,7
+1913,7
@@
simple_fwd_config_setup(void)
fwd_streams[j]->rx_queue = 0;
fwd_streams[j]->tx_port = fwd_ports_ids[i];
fwd_streams[j]->tx_queue = 0;
fwd_streams[j]->rx_queue = 0;
fwd_streams[j]->tx_port = fwd_ports_ids[i];
fwd_streams[j]->tx_queue = 0;
- fwd_streams[j]->peer_addr =
i
;
+ fwd_streams[j]->peer_addr =
fwd_streams[j]->tx_port
;
fwd_streams[j]->retry_enabled = retry_enabled;
}
}
fwd_streams[j]->retry_enabled = retry_enabled;
}
}
@@
-2866,6
+2869,12
@@
set_qmap(portid_t port_id, uint8_t is_rx, uint16_t queue_id, uint8_t map_value)
}
}
}
}
+void
+set_xstats_hide_zero(uint8_t on_off)
+{
+ xstats_hide_zero = on_off;
+}
+
static inline void
print_fdir_mask(struct rte_eth_fdir_masks *mask)
{
static inline void
print_fdir_mask(struct rte_eth_fdir_masks *mask)
{
@@
-3185,6
+3194,10
@@
set_vf_rate_limit(portid_t port_id, uint16_t vf, uint16_t rate, uint64_t q_msk)
{
int diag = -ENOTSUP;
{
int diag = -ENOTSUP;
+ RTE_SET_USED(vf);
+ RTE_SET_USED(rate);
+ RTE_SET_USED(q_msk);
+
#ifdef RTE_LIBRTE_IXGBE_PMD
if (diag == -ENOTSUP)
diag = rte_pmd_ixgbe_set_vf_rate_limit(port_id, vf, rate,
#ifdef RTE_LIBRTE_IXGBE_PMD
if (diag == -ENOTSUP)
diag = rte_pmd_ixgbe_set_vf_rate_limit(port_id, vf, rate,
@@
-3275,7
+3288,7
@@
mcast_addr_pool_remove(struct rte_port *port, uint32_t addr_idx)
}
static void
}
static void
-eth_port_multicast_addr_list_set(
uint8
_t port_id)
+eth_port_multicast_addr_list_set(
portid
_t port_id)
{
struct rte_port *port;
int diag;
{
struct rte_port *port;
int diag;
@@
-3290,7
+3303,7
@@
eth_port_multicast_addr_list_set(uint8_t port_id)
}
void
}
void
-mcast_addr_add(
uint8
_t port_id, struct ether_addr *mc_addr)
+mcast_addr_add(
portid
_t port_id, struct ether_addr *mc_addr)
{
struct rte_port *port;
uint32_t i;
{
struct rte_port *port;
uint32_t i;
@@
-3318,7
+3331,7
@@
mcast_addr_add(uint8_t port_id, struct ether_addr *mc_addr)
}
void
}
void
-mcast_addr_remove(
uint8
_t port_id, struct ether_addr *mc_addr)
+mcast_addr_remove(
portid
_t port_id, struct ether_addr *mc_addr)
{
struct rte_port *port;
uint32_t i;
{
struct rte_port *port;
uint32_t i;
@@
-3345,7
+3358,7
@@
mcast_addr_remove(uint8_t port_id, struct ether_addr *mc_addr)
}
void
}
void
-port_dcb_info_display(
uint8
_t port_id)
+port_dcb_info_display(
portid
_t port_id)
{
struct rte_eth_dcb_info dcb_info;
uint16_t i;
{
struct rte_eth_dcb_info dcb_info;
uint16_t i;