net/tls: don't log errors every time offload can't proceed
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 25 Apr 2019 19:32:01 +0000 (12:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Apr 2019 20:52:21 +0000 (16:52 -0400)
commite49d268db95b90f1fd97d4e3de1ec9f4bcfa8399
treeb2b3ea1f026a31f9ae42ab293d835cf004e8e948
parent30e5a9a5ba853b896250f0665a2e10bbafa2f6bc
net/tls: don't log errors every time offload can't proceed

Currently when CONFIG_TLS_DEVICE is set each time kTLS
connection is opened and the offload is not successful
(either because the underlying device doesn't support
it or e.g. it's tables are full) a rate limited error
will be printed to the logs.

There is nothing wrong with failing TLS offload.  SW
path will process the packets just fine, drop the
noisy messages.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_device.c