projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
random: Get random seed from /dev/urandom.
[openvswitch]
/
datapath
/
actions.c
diff --git
a/datapath/actions.c
b/datapath/actions.c
index 1a6cc35705e36328552e5af2aeb6c049071d4201..a6771b6c58c4d97c49725dde8dd2a82244259fad 100644
(file)
--- a/
datapath/actions.c
+++ b/
datapath/actions.c
@@
-26,7
+26,7
@@
static struct sk_buff *make_writable(struct sk_buff *skb, unsigned min_headroom, gfp_t gfp)
{
static struct sk_buff *make_writable(struct sk_buff *skb, unsigned min_headroom, gfp_t gfp)
{
- if (skb_
shared(skb) || skb_
cloned(skb)) {
+ if (skb_cloned(skb)) {
struct sk_buff *nskb;
unsigned headroom = max(min_headroom, skb_headroom(skb));
struct sk_buff *nskb;
unsigned headroom = max(min_headroom, skb_headroom(skb));
@@
-420,7
+420,6
@@
int execute_actions(struct datapath *dp, struct sk_buff *skb,
OVS_CB(skb)->tun_id = 0;
for (; n_actions > 0; a++, n_actions--) {
OVS_CB(skb)->tun_id = 0;
for (; n_actions > 0; a++, n_actions--) {
- WARN_ON_ONCE(skb_shared(skb));
if (prev_port != -1) {
do_output(dp, skb_clone(skb, gfp), prev_port);
prev_port = -1;
if (prev_port != -1) {
do_output(dp, skb_clone(skb, gfp), prev_port);
prev_port = -1;