Repository navigation
Commit 2f56c48
net: ipv4: Move ip_options_fragment() out of loop
[ Upstream commit faf482c ]
The ip_options_fragment() only called when iter->offset is equal to zero,
so move it out of loop, and inline 'Copy the flags to each fragment.'
As also, remove the unused parameter in ip_frag_ipcb().
Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 55402a4 commit 2f56c48
1 file changed
Lines changed: 4 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | 617 | | |
630 | 618 | | |
631 | 619 | | |
| |||
671 | 659 | | |
672 | 660 | | |
673 | 661 | | |
674 | | - | |
| 662 | + | |
675 | 663 | | |
676 | 664 | | |
677 | 665 | | |
| |||
845 | 833 | | |
846 | 834 | | |
847 | 835 | | |
| 836 | + | |
848 | 837 | | |
849 | 838 | | |
850 | 839 | | |
851 | 840 | | |
852 | 841 | | |
853 | | - | |
| 842 | + | |
854 | 843 | | |
855 | 844 | | |
856 | 845 | | |
| |||
905 | 894 | | |
906 | 895 | | |
907 | 896 | | |
908 | | - | |
| 897 | + | |
909 | 898 | | |
910 | 899 | | |
911 | 900 | | |
| |||
0 commit comments