mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
removed reference counter
This commit is contained in:
parent
70d2e1a760
commit
c8e11836fa
2 changed files with 1 additions and 8 deletions
|
@ -31,8 +31,6 @@ struct socket;
|
|||
struct interface {
|
||||
/** The index used by the kernel to reference this interface */
|
||||
int index;
|
||||
/** How many nodes use this interface for outgoing packets */
|
||||
int refcnt;
|
||||
/** Human readable name of this interface */
|
||||
char name[IF_NAME_MAX];
|
||||
/** List of IRQs of the NIC */
|
||||
|
|
|
@ -48,12 +48,7 @@ void if_destroy(struct interface *i)
|
|||
|
||||
int if_start(struct interface *i, int affinity)
|
||||
{
|
||||
if (!i->refcnt) {
|
||||
warn("Interface '%s' is not used by an active node", i->name);
|
||||
return -1;
|
||||
}
|
||||
else
|
||||
info("Starting interface '%s' (index=%u)", i->name, i->index);
|
||||
info("Starting interface '%s' (index=%u)", i->name, i->index);
|
||||
|
||||
{ INDENT
|
||||
/* Assign fwmark's to socket nodes which have netem options */
|
||||
|
|
Loading…
Add table
Reference in a new issue