Skip to content

Commit

Permalink
net/tap: do not use PMD log type
Browse files Browse the repository at this point in the history
[ upstream commit bd3b90d ]

The PMD logtype is legacy and drivers should use their own logtype.

Fixes: 050316a ("net/tap: support TSO (TCP Segment Offload)")

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
  • Loading branch information
shemminger authored and kevintraynor committed May 27, 2020
1 parent 38aef4b commit e66682d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/net/tap/rte_eth_tap.c
Expand Up @@ -780,7 +780,7 @@ tap_ioctl(struct pmd_internals *pmd, unsigned long request,
case SIOCSIFMTU:
break;
default:
RTE_LOG(WARNING, PMD, "%s: ioctl() called with wrong arg\n",
TAP_LOG(WARNING, "%s: ioctl() called with wrong arg",
pmd->name);
return -EINVAL;
}
Expand Down Expand Up @@ -1232,7 +1232,9 @@ tap_gso_ctx_setup(struct rte_gso_ctx *gso_ctx, struct rte_eth_dev *dev)
SOCKET_ID_ANY);
if (!mp) {
struct pmd_internals *pmd = dev->data->dev_private;
RTE_LOG(DEBUG, PMD, "%s: failed to create mbuf pool for device %s\n",

TAP_LOG(ERR,
"%s: failed to create mbuf pool for device %s\n",
pmd->name, dev->device->name);
return -1;
}
Expand Down

0 comments on commit e66682d

Please sign in to comment.