Thread (2 messages) 2 messages, 2 authors, 2017-07-01

Re: [PATCH net-next v3] datapath: Avoid using stack larger than 1024.

flat view

From: David Miller <davem@davemloft.net>
Date: 2017-07-01 16:10:58

From: nickcooper-zhangtonghao <redacted>
Date: Thu, 29 Jun 2017 17:27:44 -0700
From: Tonghao Zhang <redacted>

When compiling OvS-master on 4.4.0-81 kernel,
there is a warning:

    CC [M]  /root/ovs/datapath/linux/datapath.o
    /root/ovs/datapath/linux/datapath.c: In function
    'ovs_flow_cmd_set':
    /root/ovs/datapath/linux/datapath.c:1221:1: warning:
    the frame size of 1040 bytes is larger than 1024 bytes
    [-Wframe-larger-than=]

This patch factors out match-init and action-copy to avoid
"Wframe-larger-than=1024" warning. Because mask is only
used to get actions, we new a function to save some
stack space.

Signed-off-by: Tonghao Zhang <redacted>
Acked-by: Pravin B Shelar <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help