All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3 net] ibmvnic: Driver Version 1.01
@ 2016-10-17 20:28 Thomas Falcon
  2016-10-17 20:28 ` [PATCH 2/3 net] ibmvnic: Fix GFP_KERNEL allocation in interrupt context Thomas Falcon
  2016-10-17 20:28 ` [PATCH 3/3 net] ibmvnic: Update MTU after device initialization Thomas Falcon
  0 siblings, 2 replies; 5+ messages in thread
From: Thomas Falcon @ 2016-10-17 20:28 UTC (permalink / raw)
  To: netdev

Increment driver version to reflect features that have
been added since release.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
---
 drivers/net/ethernet/ibm/ibmvnic.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/ibm/ibmvnic.h b/drivers/net/ethernet/ibm/ibmvnic.h
index bfc84c7..d244e29 100644
--- a/drivers/net/ethernet/ibm/ibmvnic.h
+++ b/drivers/net/ethernet/ibm/ibmvnic.h
@@ -27,7 +27,7 @@
 /**************************************************************************/
 
 #define IBMVNIC_NAME		"ibmvnic"
-#define IBMVNIC_DRIVER_VERSION	"1.0"
+#define IBMVNIC_DRIVER_VERSION	"1.01"
 #define IBMVNIC_INVALID_MAP	-1
 #define IBMVNIC_STATS_TIMEOUT	1
 /* basic structures plus 100 2k buffers */
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/3 net] ibmvnic: Fix GFP_KERNEL allocation in interrupt context
  2016-10-17 20:28 [PATCH 1/3 net] ibmvnic: Driver Version 1.01 Thomas Falcon
@ 2016-10-17 20:28 ` Thomas Falcon
  2016-10-18 18:17   ` David Miller
  2016-10-17 20:28 ` [PATCH 3/3 net] ibmvnic: Update MTU after device initialization Thomas Falcon
  1 sibling, 1 reply; 5+ messages in thread
From: Thomas Falcon @ 2016-10-17 20:28 UTC (permalink / raw)
  To: netdev

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
---
 drivers/net/ethernet/ibm/ibmvnic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c
index bfe17d9..928bf8a 100644
--- a/drivers/net/ethernet/ibm/ibmvnic.c
+++ b/drivers/net/ethernet/ibm/ibmvnic.c
@@ -1190,7 +1190,7 @@ static struct ibmvnic_sub_crq_queue *init_sub_crq_queue(struct ibmvnic_adapter
 	if (!scrq)
 		return NULL;
 
-	scrq->msgs = (union sub_crq *)__get_free_pages(GFP_KERNEL, 2);
+	scrq->msgs = (union sub_crq *)__get_free_pages(GFP_ATOMIC, 2);
 	memset(scrq->msgs, 0, 4 * PAGE_SIZE);
 	if (!scrq->msgs) {
 		dev_warn(dev, "Couldn't allocate crq queue messages page\n");
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/3 net] ibmvnic: Update MTU after device initialization
  2016-10-17 20:28 [PATCH 1/3 net] ibmvnic: Driver Version 1.01 Thomas Falcon
  2016-10-17 20:28 ` [PATCH 2/3 net] ibmvnic: Fix GFP_KERNEL allocation in interrupt context Thomas Falcon
@ 2016-10-17 20:28 ` Thomas Falcon
  2016-10-18 18:17   ` David Miller
  1 sibling, 1 reply; 5+ messages in thread
From: Thomas Falcon @ 2016-10-17 20:28 UTC (permalink / raw)
  To: netdev

It is possible for the MTU to be changed during the initialization
process with the VNIC Server.  Ensure that the net device is updated 
to reflect the new MTU.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
---
 drivers/net/ethernet/ibm/ibmvnic.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c
index 928bf8a..213162d 100644
--- a/drivers/net/ethernet/ibm/ibmvnic.c
+++ b/drivers/net/ethernet/ibm/ibmvnic.c
@@ -3654,6 +3654,7 @@ static void handle_crq_init_rsp(struct work_struct *work)
 		goto task_failed;
 
 	netdev->real_num_tx_queues = adapter->req_tx_queues;
+	netdev->mtu = adapter->req_mtu;
 
 	if (adapter->failover) {
 		adapter->failover = false;
@@ -3792,6 +3793,7 @@ static int ibmvnic_probe(struct vio_dev *dev, const struct vio_device_id *id)
 	}
 
 	netdev->real_num_tx_queues = adapter->req_tx_queues;
+	netdev->mtu = adapter->req_mtu;
 
 	rc = register_netdev(netdev);
 	if (rc) {
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/3 net] ibmvnic: Fix GFP_KERNEL allocation in interrupt context
  2016-10-17 20:28 ` [PATCH 2/3 net] ibmvnic: Fix GFP_KERNEL allocation in interrupt context Thomas Falcon
@ 2016-10-18 18:17   ` David Miller
  0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2016-10-18 18:17 UTC (permalink / raw)
  To: tlfalcon; +Cc: netdev

From: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Date: Mon, 17 Oct 2016 15:28:09 -0500

> Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>

Applied.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 3/3 net] ibmvnic: Update MTU after device initialization
  2016-10-17 20:28 ` [PATCH 3/3 net] ibmvnic: Update MTU after device initialization Thomas Falcon
@ 2016-10-18 18:17   ` David Miller
  0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2016-10-18 18:17 UTC (permalink / raw)
  To: tlfalcon; +Cc: netdev

From: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Date: Mon, 17 Oct 2016 15:28:10 -0500

> It is possible for the MTU to be changed during the initialization
> process with the VNIC Server.  Ensure that the net device is updated 
> to reflect the new MTU.
> 
> Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>

Applied.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-10-18 18:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-17 20:28 [PATCH 1/3 net] ibmvnic: Driver Version 1.01 Thomas Falcon
2016-10-17 20:28 ` [PATCH 2/3 net] ibmvnic: Fix GFP_KERNEL allocation in interrupt context Thomas Falcon
2016-10-18 18:17   ` David Miller
2016-10-17 20:28 ` [PATCH 3/3 net] ibmvnic: Update MTU after device initialization Thomas Falcon
2016-10-18 18:17   ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.