diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-10-01 22:00:53 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-01 22:30:32 -0700 |
commit | 935a9749a36828af0e8be224a5cd4bc758112c34 (patch) | |
tree | 48aad16a52961261ec52b28feaaa2b2412ef2b0e /sound/aoa/aoa-gpio.h | |
parent | aad06212d36cf34859428a0a279e5c14ee5c9e26 (diff) | |
download | lwn-935a9749a36828af0e8be224a5cd4bc758112c34.tar.gz lwn-935a9749a36828af0e8be224a5cd4bc758112c34.zip |
ip_gre: get key from session_id correctly in erspan_rcv
erspan only uses the first 10 bits of session_id as the key to look
up the tunnel. But in erspan_rcv, it missed 'session_id & ID_MASK'
when getting the key from session_id.
If any other flag is also set in session_id in a packet, it would
fail to find the tunnel due to incorrect key in erspan_rcv.
This patch is to add 'session_id & ID_MASK' there and also remove
the unnecessary variable session_id.
Fixes: 84e54fe0a5ea ("gre: introduce native tunnel support for ERSPAN")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'sound/aoa/aoa-gpio.h')
0 files changed, 0 insertions, 0 deletions