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
net/mlx5: add ConnectX6-DX device ID
[dpdk.git]
/
drivers
/
net
/
cxgbe
/
l2t.c
diff --git
a/drivers/net/cxgbe/l2t.c
b/drivers/net/cxgbe/l2t.c
index
814188f
..
f9d651f
100644
(file)
--- a/
drivers/net/cxgbe/l2t.c
+++ b/
drivers/net/cxgbe/l2t.c
@@
-2,7
+2,8
@@
* Copyright(c) 2018 Chelsio Communications.
* All rights reserved.
*/
* Copyright(c) 2018 Chelsio Communications.
* All rights reserved.
*/
-#include "common.h"
+
+#include "base/common.h"
#include "l2t.h"
/**
#include "l2t.h"
/**
@@
-21,7
+22,8
@@
void cxgbe_l2t_release(struct l2t_entry *e)
* Process a CPL_L2T_WRITE_RPL. Note that the TID in the reply is really
* the L2T index it refers to.
*/
* Process a CPL_L2T_WRITE_RPL. Note that the TID in the reply is really
* the L2T index it refers to.
*/
-void do_l2t_write_rpl(struct adapter *adap, const struct cpl_l2t_write_rpl *rpl)
+void cxgbe_do_l2t_write_rpl(struct adapter *adap,
+ const struct cpl_l2t_write_rpl *rpl)
{
struct l2t_data *d = adap->l2t;
unsigned int tid = GET_TID(rpl);
{
struct l2t_data *d = adap->l2t;
unsigned int tid = GET_TID(rpl);
@@
-80,10
+82,10
@@
static int write_l2e(struct rte_eth_dev *dev, struct l2t_entry *e, int sync,
V_L2T_W_NOREPLY(!sync));
req->l2t_idx = cpu_to_be16(l2t_idx);
req->vlan = cpu_to_be16(e->vlan);
V_L2T_W_NOREPLY(!sync));
req->l2t_idx = cpu_to_be16(l2t_idx);
req->vlan = cpu_to_be16(e->vlan);
- rte_memcpy(req->dst_mac, e->dmac, ETHER_ADDR_LEN);
+ rte_memcpy(req->dst_mac, e->dmac,
RTE_
ETHER_ADDR_LEN);
if (loopback)
if (loopback)
- memset(req->dst_mac, 0, ETHER_ADDR_LEN);
+ memset(req->dst_mac, 0,
RTE_
ETHER_ADDR_LEN);
t4_mgmt_tx(ctrlq, mbuf);
t4_mgmt_tx(ctrlq, mbuf);
@@
-115,7
+117,7
@@
static struct l2t_entry *find_or_alloc_l2e(struct l2t_data *d, u16 vlan,
first_free = e;
} else {
if (e->state == L2T_STATE_SWITCHING) {
first_free = e;
} else {
if (e->state == L2T_STATE_SWITCHING) {
- if ((!memcmp(e->dmac, dmac, ETHER_ADDR_LEN)) &&
+ if ((!memcmp(e->dmac, dmac,
RTE_
ETHER_ADDR_LEN)) &&
e->vlan == vlan && e->lport == port)
goto exists;
}
e->vlan == vlan && e->lport == port)
goto exists;
}
@@
-153,7
+155,7
@@
static struct l2t_entry *t4_l2t_alloc_switching(struct rte_eth_dev *dev,
e->state = L2T_STATE_SWITCHING;
e->vlan = vlan;
e->lport = port;
e->state = L2T_STATE_SWITCHING;
e->vlan = vlan;
e->lport = port;
- rte_memcpy(e->dmac, eth_addr, ETHER_ADDR_LEN);
+ rte_memcpy(e->dmac, eth_addr,
RTE_
ETHER_ADDR_LEN);
rte_atomic32_set(&e->refcnt, 1);
ret = write_l2e(dev, e, 0, !L2T_LPBK, !L2T_ARPMISS);
if (ret < 0)
rte_atomic32_set(&e->refcnt, 1);
ret = write_l2e(dev, e, 0, !L2T_LPBK, !L2T_ARPMISS);
if (ret < 0)