Repository navigation
Commit fb82fd2
ibmveth: Fix checksum offload failure handling
Fix a number of issues in ibmveth_set_csum_offload:
- set_attr6 and clr_attr6 may be used uninitialised
- We store the result of the IPV4 checksum change in ret but overwrite
it in a couple of places before checking it again later. Add ret4
to make it obvious what we are doing.
- We weren't clearing the NETIF_F_IP_CSUM and NETIF_F_IPV6_CSUM flags
if the enable of that hypervisor feature failed.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 91aae1e commit fb82fd2
1 file changed
Lines changed: 20 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
760 | | - | |
| 760 | + | |
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
| |||
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
| 773 | + | |
| 774 | + | |
773 | 775 | | |
774 | 776 | | |
775 | 777 | | |
| |||
784 | 786 | | |
785 | 787 | | |
786 | 788 | | |
787 | | - | |
| 789 | + | |
788 | 790 | | |
789 | 791 | | |
790 | | - | |
| 792 | + | |
791 | 793 | | |
792 | 794 | | |
793 | | - | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
794 | 802 | | |
795 | | - | |
796 | | - | |
797 | 803 | | |
798 | 804 | | |
799 | 805 | | |
| |||
804 | 810 | | |
805 | 811 | | |
806 | 812 | | |
807 | | - | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
808 | 820 | | |
809 | | - | |
810 | | - | |
811 | | - | |
812 | 821 | | |
813 | 822 | | |
814 | 823 | | |
815 | | - | |
| 824 | + | |
816 | 825 | | |
817 | 826 | | |
818 | 827 | | |
| |||
0 commit comments