Commit c6d2770
tcp: Factorise sk_family-independent comparison in inet_bind2_bucket_match(_addr_any).
This is a prep patch to make the following patches cleaner that touch
inet_bind2_bucket_match() and inet_bind2_bucket_match_addr_any().
Both functions have duplicated comparison for netns, port, and l3mdev.
Let's factorise them.
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 8cdd9f1 commit c6d2770
1 file changed
Lines changed: 13 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
815 | 815 | | |
816 | 816 | | |
817 | 817 | | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
818 | 822 | | |
819 | 823 | | |
820 | 824 | | |
821 | 825 | | |
822 | 826 | | |
823 | | - | |
824 | | - | |
825 | | - | |
826 | | - | |
| 827 | + | |
827 | 828 | | |
828 | | - | |
829 | | - | |
| 829 | + | |
830 | 830 | | |
831 | 831 | | |
832 | 832 | | |
833 | 833 | | |
834 | 834 | | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
835 | 839 | | |
836 | 840 | | |
837 | 841 | | |
838 | | - | |
839 | | - | |
840 | | - | |
| 842 | + | |
841 | 843 | | |
842 | 844 | | |
843 | 845 | | |
844 | 846 | | |
845 | 847 | | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | | - | |
| 848 | + | |
850 | 849 | | |
851 | | - | |
852 | | - | |
| 850 | + | |
853 | 851 | | |
854 | 852 | | |
855 | 853 | | |
| |||
0 commit comments