From: David Miller <davem@davemloft.net>
To: luobin9@huawei.com
Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
luoxianjun@huawei.com, yin.yinshi@huawei.com,
cloud.wangxiaoyun@huawei.com, chiqijun@huawei.com
Subject: Re: [PATCH net-next v3 0/5] hinic: add some ethtool ops support
Date: Sat, 27 Jun 2020 17:52:24 -0700 (PDT) [thread overview]
Message-ID: <20200627.175224.2220574097858458030.davem@davemloft.net> (raw)
In-Reply-To: <20200627065242.26761-1-luobin9@huawei.com>
From: Luo bin <luobin9@huawei.com>
Date: Sat, 27 Jun 2020 14:52:37 +0800
> patch #1: support to set and get pause params with
> "ethtool -A/a" cmd
> patch #2: support to set and get irq coalesce params with
> "ethtool -C/c" cmd
> patch #3: support to do self test with "ethtool -t" cmd
> patch #4: support to identify physical device with "ethtool -p" cmd
> patch #5: support to get eeprom information with "ethtool -m" cmd
In general, I want you to decrease the amount of log messages.
You should only use them when the device or the kernel does something
unexpected which should be notifier to the user.
Kernel log messages are not for informating the user of limitations
of what they can perform with "ethtool".
For example, when setting pause paramenters, you complain in the logs
if the autonet setting is different.
This is completely inappropriate.
Then in patch #2 you have these crazy macros that print out state
changes with netdev_info(). That is also inappropriate. The user
gets a success status, and they can query the settings later if
they like as well.
Please stop abusing kernel log messaging, it isn't a framework for
giving more detailed ethtool command result statuses.
Thank you.
next prev parent reply other threads:[~2020-06-28 0:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-27 6:52 Luo bin
2020-06-27 6:52 ` [PATCH net-next v3 1/5] hinic: add support to set and get pause params Luo bin
2020-06-27 6:52 ` [PATCH net-next v3 2/5] hinic: add support to set and get irq coalesce Luo bin
2020-06-27 6:52 ` [PATCH net-next v3 3/5] hinic: add self test support Luo bin
2020-06-27 6:52 ` [PATCH net-next v3 4/5] hinic: add support to identify physical device Luo bin
2020-06-27 6:52 ` [PATCH net-next v3 5/5] hinic: add support to get eeprom information Luo bin
2020-06-28 0:52 ` David Miller [this message]
2020-06-28 0:58 ` [PATCH net-next v3 0/5] hinic: add some ethtool ops support luobin (L)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200627.175224.2220574097858458030.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=chiqijun@huawei.com \
--cc=cloud.wangxiaoyun@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luobin9@huawei.com \
--cc=luoxianjun@huawei.com \
--cc=netdev@vger.kernel.org \
--cc=yin.yinshi@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®