aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/pktio/socket_common.c
diff options
context:
space:
mode:
authorJere Leppänen <jere.leppanen@nokia.com>2021-02-22 21:54:31 +0200
committerPetri Savolainen <petri.savolainen@nokia.com>2021-02-26 15:09:58 +0200
commit706e1e6b24a40bfd9c2b07f084af47532bc2141f (patch)
tree29e51bc1e773a918dcd5f1951ed66116e046a690 /platform/linux-generic/pktio/socket_common.c
parent07e583bcbd09ba4852193e6732136148fef1022b (diff)
linux-gen: rename remaining global symbols in the static library
Rename the rest of the global symbols in the static library that do not have the "_odp_" prefix. Fixes: https://github.com/OpenDataPlane/odp/issues/805 Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'platform/linux-generic/pktio/socket_common.c')
-rw-r--r--platform/linux-generic/pktio/socket_common.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/platform/linux-generic/pktio/socket_common.c b/platform/linux-generic/pktio/socket_common.c
index 88c1471b0..ab0caeb81 100644
--- a/platform/linux-generic/pktio/socket_common.c
+++ b/platform/linux-generic/pktio/socket_common.c
@@ -57,7 +57,7 @@ int _odp_mac_addr_get_fd(int fd, const char *name, unsigned char mac_dst[])
snprintf(ethreq.ifr_name, IF_NAMESIZE, "%s", name);
ret = ioctl(fd, SIOCGIFHWADDR, &ethreq);
if (ret != 0) {
- __odp_errno = errno;
+ _odp_errno = errno;
ODP_ERR("ioctl(SIOCGIFHWADDR): %s: \"%s\".\n", strerror(errno),
ethreq.ifr_name);
return -1;
@@ -82,7 +82,7 @@ uint32_t _odp_mtu_get_fd(int fd, const char *name)
snprintf(ifr.ifr_name, IF_NAMESIZE, "%s", name);
ret = ioctl(fd, SIOCGIFMTU, &ifr);
if (ret < 0) {
- __odp_errno = errno;
+ _odp_errno = errno;
ODP_ERR("ioctl(SIOCGIFMTU): %s: \"%s\".\n", strerror(errno),
ifr.ifr_name);
return 0;
@@ -106,7 +106,7 @@ int _odp_mtu_set_fd(int fd, const char *name, int mtu)
ret = ioctl(fd, SIOCSIFMTU, &ifr);
if (ret < 0) {
- __odp_errno = errno;
+ _odp_errno = errno;
ODP_ERR("ioctl(SIOCSIFMTU): %s: \"%s\".\n", strerror(errno),
ifr.ifr_name);
return -1;
@@ -127,7 +127,7 @@ int _odp_promisc_mode_set_fd(int fd, const char *name, int enable)
snprintf(ifr.ifr_name, IF_NAMESIZE, "%s", name);
ret = ioctl(fd, SIOCGIFFLAGS, &ifr);
if (ret < 0) {
- __odp_errno = errno;
+ _odp_errno = errno;
ODP_DBG("ioctl(SIOCGIFFLAGS): %s: \"%s\".\n", strerror(errno),
ifr.ifr_name);
return -1;
@@ -140,7 +140,7 @@ int _odp_promisc_mode_set_fd(int fd, const char *name, int enable)
ret = ioctl(fd, SIOCSIFFLAGS, &ifr);
if (ret < 0) {
- __odp_errno = errno;
+ _odp_errno = errno;
ODP_DBG("ioctl(SIOCSIFFLAGS): %s: \"%s\".\n", strerror(errno),
ifr.ifr_name);
return -1;
@@ -161,7 +161,7 @@ int _odp_promisc_mode_get_fd(int fd, const char *name)
snprintf(ifr.ifr_name, IF_NAMESIZE, "%s", name);
ret = ioctl(fd, SIOCGIFFLAGS, &ifr);
if (ret < 0) {
- __odp_errno = errno;
+ _odp_errno = errno;
ODP_DBG("ioctl(SIOCGIFFLAGS): %s: \"%s\".\n", strerror(errno),
ifr.ifr_name);
return -1;
@@ -178,7 +178,7 @@ int _odp_link_status_fd(int fd, const char *name)
snprintf(ifr.ifr_name, IF_NAMESIZE, "%s", name);
ret = ioctl(fd, SIOCGIFFLAGS, &ifr);
if (ret < 0) {
- __odp_errno = errno;
+ _odp_errno = errno;
ODP_DBG("ioctl(SIOCGIFFLAGS): %s: \"%s\".\n", strerror(errno),
ifr.ifr_name);
return ODP_PKTIO_LINK_STATUS_UNKNOWN;
@@ -206,7 +206,7 @@ int _odp_link_info_fd(int fd, const char *name, odp_pktio_link_info_t *info)
/* Link pause status */
ifr.ifr_data = (void *)&pcmd;
if (ioctl(fd, SIOCETHTOOL, &ifr) && errno != EOPNOTSUPP) {
- __odp_errno = errno;
+ _odp_errno = errno;
ODP_ERR("ioctl(SIOCETHTOOL): %s: \"%s\".\n", strerror(errno),
ifr.ifr_name);
return -1;
@@ -219,7 +219,7 @@ int _odp_link_info_fd(int fd, const char *name, odp_pktio_link_info_t *info)
ifr.ifr_data = (void *)&ecmd_old;
if (ioctl(fd, SIOCETHTOOL, &ifr) < 0) {
- __odp_errno = errno;
+ _odp_errno = errno;
ODP_ERR("ioctl(SIOCETHTOOL): %s: \"%s\".\n", strerror(errno), ifr.ifr_name);
return -1;
}
@@ -277,7 +277,7 @@ int _odp_link_info_fd(int fd, const char *name, odp_pktio_link_info_t *info)
*ecmd = hcmd;
ifr.ifr_data = (void *)ecmd;
if (ioctl(fd, SIOCETHTOOL, &ifr) < 0) {
- __odp_errno = errno;
+ _odp_errno = errno;
ODP_ERR("ioctl(SIOCETHTOOL): %s: \"%s\".\n", strerror(errno),
ifr.ifr_name);
return -1;