sk: turn warnings about unexpected RX filter into debug messages.

When a network interface doesn't support the most specific PTP filter
(e.g. it can timestamp either all or no received packets), it is
expected that the driver will report a different filter than was
requested. Turn the warnings into debug messages to avoid confusing
the users.

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
master
Miroslav Lichvar 2018-02-15 12:48:37 +01:00 committed by Richard Cochran
parent 303b08cbf5
commit bd5f3d09e7
1 changed files with 3 additions and 3 deletions

6
sk.c
View File

@ -64,9 +64,9 @@ static int hwts_init(int fd, const char *device, int rx_filter, int one_step)
if (memcmp(&cfg, &req, sizeof(cfg))) { if (memcmp(&cfg, &req, sizeof(cfg))) {
pr_warning("driver changed our HWTSTAMP options"); pr_debug("driver changed our HWTSTAMP options");
pr_warning("tx_type %d not %d", cfg.tx_type, req.tx_type); pr_debug("tx_type %d not %d", cfg.tx_type, req.tx_type);
pr_warning("rx_filter %d not %d", cfg.rx_filter, req.rx_filter); pr_debug("rx_filter %d not %d", cfg.rx_filter, req.rx_filter);
if (cfg.tx_type != req.tx_type || if (cfg.tx_type != req.tx_type ||
(cfg.rx_filter != HWTSTAMP_FILTER_ALL && (cfg.rx_filter != HWTSTAMP_FILTER_ALL &&