diff options
author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2023-06-14 16:01:04 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-06-19 11:32:58 -0700 |
commit | 6facbca52da2c209ddffa0c9547769cbcaa268ef (patch) | |
tree | d2ebc166a6b004f3983970ef0c943e0aa0e70251 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ac9d8a66e41d553bf57fdffe88f59f1b1443191b (diff) |
ipv6: rpl: Remove redundant multicast tests in ipv6_rpl_srh_rcv().
ipv6_rpl_srh_rcv() checks if ipv6_hdr(skb)->daddr or ohdr->rpl_segaddr[i]
is the multicast address with ipv6_addr_type().
We have the same check for ipv6_hdr(skb)->daddr in ipv6_rthdr_rcv(), so we
need not recheck it in ipv6_rpl_srh_rcv().
Also, we should use ipv6_addr_is_multicast() for ohdr->rpl_segaddr[i]
instead of ipv6_addr_type().
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions