Re: [PATCH net] ibmvnic: Harden device login requests

2020-06-15 Thread Thomas Falcon

On 6/12/20 4:10 PM, David Miller wrote:

From: Thomas Falcon 
Date: Fri, 12 Jun 2020 13:31:39 -0500


@@ -841,13 +841,14 @@ static int ibmvnic_login(struct net_device *netdev)
  {
struct ibmvnic_adapter *adapter = netdev_priv(netdev);
unsigned long timeout = msecs_to_jiffies(3);
+   int retries = 10;
int retry_count = 0;
bool retry;
int rc;

Reverse christmas tree, please.


Oops, sending a v2 soon.

Thanks,

Tom



Re: [PATCH net] ibmvnic: Harden device login requests

2020-06-12 Thread David Miller
From: Thomas Falcon 
Date: Fri, 12 Jun 2020 13:31:39 -0500

> @@ -841,13 +841,14 @@ static int ibmvnic_login(struct net_device *netdev)
>  {
>   struct ibmvnic_adapter *adapter = netdev_priv(netdev);
>   unsigned long timeout = msecs_to_jiffies(3);
> + int retries = 10;
>   int retry_count = 0;
>   bool retry;
>   int rc;

Reverse christmas tree, please.