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: move Linux-specific functions
[dpdk.git]
/
drivers
/
net
/
hns3
/
hns3_fdir.c
diff --git
a/drivers/net/hns3/hns3_fdir.c
b/drivers/net/hns3/hns3_fdir.c
index
4c5928f
..
6ab439d
100644
(file)
--- a/
drivers/net/hns3/hns3_fdir.c
+++ b/
drivers/net/hns3/hns3_fdir.c
@@
-619,7
+619,7
@@
static void hns3_fd_convert_meta_data(struct hns3_fd_key_cfg *cfg,
uint8_t *key_x, uint8_t *key_y)
{
uint16_t meta_data = 0;
uint8_t *key_x, uint8_t *key_y)
{
uint16_t meta_data = 0;
- uint
16
_t port_number;
+ uint
32
_t port_number;
uint8_t cur_pos = 0;
uint8_t tuple_size;
uint8_t shift_bits;
uint8_t cur_pos = 0;
uint8_t tuple_size;
uint8_t shift_bits;
@@
-637,7
+637,7
@@
static void hns3_fd_convert_meta_data(struct hns3_fd_key_cfg *cfg,
rule->key_conf.spec.tunnel_type ? 1 : 0);
cur_pos += tuple_size;
} else if (i == VLAN_NUMBER) {
rule->key_conf.spec.tunnel_type ? 1 : 0);
cur_pos += tuple_size;
} else if (i == VLAN_NUMBER) {
- uint
8
_t vlan_tag;
+ uint
32
_t vlan_tag;
uint8_t vlan_num;
if (rule->key_conf.spec.tunnel_type == 0)
vlan_num = rule->key_conf.vlan_num;
uint8_t vlan_num;
if (rule->key_conf.spec.tunnel_type == 0)
vlan_num = rule->key_conf.vlan_num;
@@
-893,7
+893,7
@@
static int hns3_insert_fdir_filter(struct hns3_hw *hw,
if (ret < 0) {
rte_spinlock_unlock(&fdir_info->flows_lock);
hns3_err(hw, "Hash table full? err:%d(%s)!", ret,
if (ret < 0) {
rte_spinlock_unlock(&fdir_info->flows_lock);
hns3_err(hw, "Hash table full? err:%d(%s)!", ret,
- strerror(ret));
+ strerror(
-
ret));
return ret;
}
return ret;
}