Skip to content
Snippets Groups Projects
Commit 95dc95bf authored by Padmalochan Mohapatra's avatar Padmalochan Mohapatra Committed by Rahul Thakur
Browse files

libqos : Support of queue stats collection for Qualcomm platform.

parent 4569d6a5
No related branches found
No related tags found
1 merge request!338libqos : Support of queue stats collection for Qualcomm platform.
Pipeline #83280 passed
...@@ -36,6 +36,13 @@ OBJ_LIB += $(addprefix $(LIB_DIR)/src/, ecnt_qos.o ) ...@@ -36,6 +36,13 @@ OBJ_LIB += $(addprefix $(LIB_DIR)/src/, ecnt_qos.o )
LIBQOS_CFLAGS += $(DIAG_CFLAGS) -Werror LIBQOS_CFLAGS += $(DIAG_CFLAGS) -Werror
endif endif
ifeq ($(PLATFORM),IPQ95XX)
LIB_DIR = linux
LIBS += -lnl-3
OBJ_LIB += $(addprefix $(LIB_DIR)/, linux_qos.o )
LIBQOS_CFLAGS += $(DIAG_CFLAGS) -Werror -I./$(LIB_DIR)
endif
ifeq ($(PLATFORM),LINUX) ifeq ($(PLATFORM),LINUX)
LIB_DIR = linux LIB_DIR = linux
LIBS += -lnl-3 LIBS += -lnl-3
......
...@@ -25,7 +25,7 @@ extern const struct qos_ops qos_ecnt_ops_eth; ...@@ -25,7 +25,7 @@ extern const struct qos_ops qos_ecnt_ops_eth;
extern const struct qos_ops qos_ecnt_ops_nas; extern const struct qos_ops qos_ecnt_ops_nas;
extern const struct qos_ops qos_ecnt_ops_ae_wan; extern const struct qos_ops qos_ecnt_ops_ae_wan;
#endif #endif
#ifdef IOPSYS_LINUX #if defined(IOPSYS_LINUX) || defined(IPQ95XX)
extern const struct qos_ops qos_linux_ops_eth; extern const struct qos_ops qos_linux_ops_eth;
#endif #endif
......
...@@ -351,8 +351,14 @@ static int linux_get_stats(const char *ifname, ...@@ -351,8 +351,14 @@ static int linux_get_stats(const char *ifname,
return ret; return ret;
} }
#if defined(IOPSYS_LINUX)
const struct qos_ops qos_linux_ops_eth = { const struct qos_ops qos_linux_ops_eth = {
.ifname = "lan", .ifname = "lan",
.get_stats = linux_get_stats, .get_stats = linux_get_stats,
}; };
#elif defined(IPQ95XX)
const struct qos_ops qos_linux_ops_eth = {
.ifname = "eth",
.get_stats = linux_get_stats,
};
#endif
...@@ -40,7 +40,7 @@ const struct qos_ops *qos_ops[] = { ...@@ -40,7 +40,7 @@ const struct qos_ops *qos_ops[] = {
&qos_ecnt_ops_nas, &qos_ecnt_ops_nas,
&qos_ecnt_ops_ae_wan, &qos_ecnt_ops_ae_wan,
#endif #endif
#ifdef IOPSYS_LINUX #if defined(IOPSYS_LINUX) || defined(IPQ95XX)
&qos_linux_ops_eth, &qos_linux_ops_eth,
#endif #endif
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment