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
ring: remove unnecessary forward declaration
[dpdk.git]
/
drivers
/
net
/
cxgbe
/
cxgbe_flow.c
diff --git
a/drivers/net/cxgbe/cxgbe_flow.c
b/drivers/net/cxgbe/cxgbe_flow.c
index
a7b053b
..
d3de689
100644
(file)
--- a/
drivers/net/cxgbe/cxgbe_flow.c
+++ b/
drivers/net/cxgbe/cxgbe_flow.c
@@
-233,7
+233,7
@@
ch_rte_parsetype_ipv4(const void *dmask, const struct rte_flow_item *item,
item, "ttl/tos are not supported");
fs->type = FILTER_TYPE_IPV4;
item, "ttl/tos are not supported");
fs->type = FILTER_TYPE_IPV4;
- CXGBE_FILL_FS(
ETHER_TYPE_IPv
4, 0xffff, ethtype);
+ CXGBE_FILL_FS(
RTE_ETHER_TYPE_IPV
4, 0xffff, ethtype);
if (!val)
return 0; /* ipv4 wild card */
if (!val)
return 0; /* ipv4 wild card */
@@
-262,7
+262,7
@@
ch_rte_parsetype_ipv6(const void *dmask, const struct rte_flow_item *item,
"tc/flow/hop are not supported");
fs->type = FILTER_TYPE_IPV6;
"tc/flow/hop are not supported");
fs->type = FILTER_TYPE_IPV6;
- CXGBE_FILL_FS(
ETHER_TYPE_IPv
6, 0xffff, ethtype);
+ CXGBE_FILL_FS(
RTE_ETHER_TYPE_IPV
6, 0xffff, ethtype);
if (!val)
return 0; /* ipv6 wild card */
if (!val)
return 0; /* ipv6 wild card */
@@
-448,7
+448,7
@@
ch_rte_parse_atype_switch(const struct rte_flow_action *a,
case RTE_FLOW_ACTION_TYPE_OF_PUSH_VLAN:
pushvlan = (const struct rte_flow_action_of_push_vlan *)
a->conf;
case RTE_FLOW_ACTION_TYPE_OF_PUSH_VLAN:
pushvlan = (const struct rte_flow_action_of_push_vlan *)
a->conf;
- if (pushvlan->ethertype != ETHER_TYPE_VLAN)
+ if (pushvlan->ethertype !=
RTE_
ETHER_TYPE_VLAN)
return rte_flow_error_set(e, EINVAL,
RTE_FLOW_ERROR_TYPE_ACTION, a,
"only ethertype 0x8100 "
return rte_flow_error_set(e, EINVAL,
RTE_FLOW_ERROR_TYPE_ACTION, a,
"only ethertype 0x8100 "