Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
9d148e39
Commit
9d148e39
authored
Sep 04, 2012
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixes' of
git://git.kernel.org/pub/scm/linux/kernel/git/jesse/openvswitch
parents
b320e972
c303aa94
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
net/openvswitch/actions.c
net/openvswitch/actions.c
+1
-1
net/openvswitch/datapath.c
net/openvswitch/datapath.c
+3
-3
net/openvswitch/flow.h
net/openvswitch/flow.h
+5
-3
No files found.
net/openvswitch/actions.c
View file @
9d148e39
...
...
@@ -45,7 +45,7 @@ static int make_writable(struct sk_buff *skb, int write_len)
return
pskb_expand_head
(
skb
,
0
,
0
,
GFP_ATOMIC
);
}
/* remove VLAN header from packet and update csum acc
ro
dingly. */
/* remove VLAN header from packet and update csum acc
or
dingly. */
static
int
__pop_vlan_tci
(
struct
sk_buff
*
skb
,
__be16
*
current_tci
)
{
struct
vlan_hdr
*
vhdr
;
...
...
net/openvswitch/datapath.c
View file @
9d148e39
...
...
@@ -425,10 +425,10 @@ static int validate_sample(const struct nlattr *attr,
static
int
validate_tp_port
(
const
struct
sw_flow_key
*
flow_key
)
{
if
(
flow_key
->
eth
.
type
==
htons
(
ETH_P_IP
))
{
if
(
flow_key
->
ipv4
.
tp
.
src
&&
flow_key
->
ipv4
.
tp
.
dst
)
if
(
flow_key
->
ipv4
.
tp
.
src
||
flow_key
->
ipv4
.
tp
.
dst
)
return
0
;
}
else
if
(
flow_key
->
eth
.
type
==
htons
(
ETH_P_IPV6
))
{
if
(
flow_key
->
ipv6
.
tp
.
src
&&
flow_key
->
ipv6
.
tp
.
dst
)
if
(
flow_key
->
ipv6
.
tp
.
src
||
flow_key
->
ipv6
.
tp
.
dst
)
return
0
;
}
...
...
@@ -460,7 +460,7 @@ static int validate_set(const struct nlattr *a,
if
(
flow_key
->
eth
.
type
!=
htons
(
ETH_P_IP
))
return
-
EINVAL
;
if
(
!
flow_key
->
ip
v4
.
addr
.
src
||
!
flow_key
->
ipv4
.
addr
.
dst
)
if
(
!
flow_key
->
ip
.
proto
)
return
-
EINVAL
;
ipv4_key
=
nla_data
(
ovs_key
);
...
...
net/openvswitch/flow.h
View file @
9d148e39
...
...
@@ -145,15 +145,17 @@ u64 ovs_flow_used_time(unsigned long flow_jiffies);
* OVS_KEY_ATTR_PRIORITY 4 -- 4 8
* OVS_KEY_ATTR_IN_PORT 4 -- 4 8
* OVS_KEY_ATTR_ETHERNET 12 -- 4 16
* OVS_KEY_ATTR_ETHERTYPE 2 2 4 8 (outer VLAN ethertype)
* OVS_KEY_ATTR_8021Q 4 -- 4 8
* OVS_KEY_ATTR_ETHERTYPE 2 2 4 8
* OVS_KEY_ATTR_ENCAP 0 -- 4 4 (VLAN encapsulation)
* OVS_KEY_ATTR_ETHERTYPE 2 2 4 8 (inner VLAN ethertype)
* OVS_KEY_ATTR_IPV6 40 -- 4 44
* OVS_KEY_ATTR_ICMPV6 2 2 4 8
* OVS_KEY_ATTR_ND 28 -- 4 32
* -------------------------------------------------
* total 1
32
* total 1
44
*/
#define FLOW_BUFSIZE 1
32
#define FLOW_BUFSIZE 1
44
int
ovs_flow_to_nlattrs
(
const
struct
sw_flow_key
*
,
struct
sk_buff
*
);
int
ovs_flow_from_nlattrs
(
struct
sw_flow_key
*
swkey
,
int
*
key_lenp
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment