2016-03-01 20:24:56

by David Miller

[permalink] [raw]
Subject: Re: [PATCH net 0/3] r8169:issues fix.

From: Chunhao Lin <[email protected]>
Date: Fri, 26 Feb 2016 16:40:43 +0800

> This series of patches fix 3 issues that are listed below.
>
> Chunhao Lin (3):
> r8169:fix nic sometimes doesn't work after changing the mac address.
> r8169:eliminate error message in using ethtool -S when nic is down.
> r8169: Enable RX_MULTI_EN for RTL_GIGA_MAC_VER_41~48

I don't agree with changes #1 and #2.

If you are going to go to a model where every single configuration
operation is recorded in software and performed at resume time, then
really do it and fix it in the whole driver. As currently coded you
are leaving lots of known bugs in the driver.

#2 is even a worse situation. If you are going to handle things this
way you must sync the counters when the suspend happens, so that the
statistics get call receives up to date values.


2016-03-02 16:33:07

by ChunHao Lin

[permalink] [raw]
Subject: RE: [PATCH net 0/3] r8169:issues fix.

> I don't agree with changes #1 and #2.
>
> If you are going to go to a model where every single configuration operation
> is recorded in software and performed at resume time, then really do it and
> fix it in the whole driver. As currently coded you are leaving lots of known
> bugs in the driver.
>
> #2 is even a worse situation. If you are going to handle things this way you
> must sync the counters when the suspend happens, so that the statistics get
> call receives up to date values.

Thanks for your advice. I will send #3 patch first. Then modify #1 and #2 patch and resend these two patches.

------Please consider the environment before printing this e-mail.