git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
raw/ifpga/base: fix SPI transaction
[dpdk.git]
/
drivers
/
net
/
cxgbe
/
clip_tbl.c
diff --git
a/drivers/net/cxgbe/clip_tbl.c
b/drivers/net/cxgbe/clip_tbl.c
index
fa5281c
..
a0ab2a6
100644
(file)
--- a/
drivers/net/cxgbe/clip_tbl.c
+++ b/
drivers/net/cxgbe/clip_tbl.c
@@
-3,7
+3,7
@@
* All rights reserved.
*/
* All rights reserved.
*/
-#include "common.h"
+#include "
base/
common.h"
#include "clip_tbl.h"
/**
#include "clip_tbl.h"
/**
@@
-105,7
+105,7
@@
static struct clip_entry *t4_clip_alloc(struct rte_eth_dev *dev,
struct adapter *adap = ethdev2adap(dev);
struct clip_tbl *ctbl = adap->clipt;
struct clip_entry *ce;
struct adapter *adap = ethdev2adap(dev);
struct clip_tbl *ctbl = adap->clipt;
struct clip_entry *ce;
- int ret;
+ int ret
= 0
;
if (!ctbl)
return NULL;
if (!ctbl)
return NULL;
@@
-120,12
+120,10
@@
static struct clip_entry *t4_clip_alloc(struct rte_eth_dev *dev,
ce->type = FILTER_TYPE_IPV6;
rte_atomic32_set(&ce->refcnt, 1);
ret = clip6_get_mbox(dev, lip);
ce->type = FILTER_TYPE_IPV6;
rte_atomic32_set(&ce->refcnt, 1);
ret = clip6_get_mbox(dev, lip);
- if (ret)
{
+ if (ret)
dev_debug(adap,
"CLIP FW ADD CMD failed: %d",
ret);
dev_debug(adap,
"CLIP FW ADD CMD failed: %d",
ret);
- ce = NULL;
- }
} else {
ce->type = FILTER_TYPE_IPV4;
}
} else {
ce->type = FILTER_TYPE_IPV4;
}
@@
-136,7
+134,7
@@
static struct clip_entry *t4_clip_alloc(struct rte_eth_dev *dev,
}
t4_os_write_unlock(&ctbl->lock);
}
t4_os_write_unlock(&ctbl->lock);
- return ce;
+ return
ret ? NULL :
ce;
}
/**
}
/**