Skip to content
Snippets Groups Projects
Commit 55c83d82 authored by Husaam Mehdi's avatar Husaam Mehdi
Browse files

qosmngr: move Device.QoS. from bbfdm to qosmngr

no changes have been done to bbf code, only moved qos.c and qos.h
from bbfdm to qosmngr, and added as a bbfdm micro service
parent 4179d88a
No related branches found
No related tags found
No related merge requests found
Pipeline #144155 failed
This commit is part of merge request !20. Comments created here will be created in the context of that merge request.
include:
- project: 'iopsys/gitlab-ci-pipeline'
file: '/static-code-analysis.yml'
ref: '0.28'
ref: '0.31'
stages:
- static_code_analysis
......
......@@ -4,6 +4,7 @@ include common.mk
-include Makefile.diag.inc
QOSMNGR_LIB=libqosmngr.so
PLUGIN = bbf_plugin
GCOV=gcov
SRC_DIR = src
......@@ -22,7 +23,10 @@ PROG_CFLAGS += -Wno-format-nonliteral
.PHONY: all clean
all: version $(PROG)
all: version $(PLUGIN) $(PROG)
$(PLUGIN): $(OBJS)
$(MAKE) -C ./bbf_plugin
$(PROG): $(INCLUDE_DIR)/version.h $(OBJS)
$(CC) $(PROG_LDFLAGS) -o $@ $^ $(PROG_LIBS)
......
LIB_QOS_BBF := libqos_bbf.so
OBJS := qos_bbf.o
LIB_CFLAGS = $(CFLAGS) -Wall -Werror
LIB_LDFLAGS = $(LDFLAGS)
FPIC := -fPIC
.PHONY: all
%.o: %.c
$(CC) $(LIB_CFLAGS) $(FPIC) -c -o $@ $<
all: $(LIB_QOS_BBF)
$(LIB_QOS_BBF): $(OBJS)
$(CC) $(LIB_CFLAGS) $(LIB_LDFLAGS) -shared -o $@ $^
clean:
rm -f *.o $(LIB_QOS_BBF)
This diff is collapsed.
/*
* Copyright (C) 2019 iopsys Software Solutions AB
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 2.1
* as published by the Free Software Foundation
*
* Author: Omar Kallel <omar.kallel@pivasoftware.com>
*/
#ifndef __QOS_H
#define __QOS_H
#include "libbbfdm-api/dmcommon.h"
extern DMOBJ tQoSObj[];
extern DMLEAF tQoSParams[];
extern DMLEAF tQoSClassificationParams[];
extern DMLEAF tQoSAppParams[];
extern DMLEAF tQoSFlowParams[];
extern DMLEAF tQoSPolicerParams[];
extern DMLEAF tQoSQueueParams[];
extern DMLEAF tQoSQueueStatsParams[];
extern DMLEAF tQoSShaperParams[];
#endif //__QOS_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment