diff options
| author | Michael Brown | 2006-04-28 16:08:41 +0200 |
|---|---|---|
| committer | Michael Brown | 2006-04-28 16:08:41 +0200 |
| commit | 79f64eea5518403ea7c364fb97c51c9fc0f990bf (patch) | |
| tree | 27a74ab614daa58729bd51fb23d9ef05964392c5 | |
| parent | Add an explicit failure debug message (diff) | |
| download | ipxe-79f64eea5518403ea7c364fb97c51c9fc0f990bf.tar.gz ipxe-79f64eea5518403ea7c364fb97c51c9fc0f990bf.tar.xz ipxe-79f64eea5518403ea7c364fb97c51c9fc0f990bf.zip | |
Transmit the buffer contents, not the buffer descriptor...
| -rw-r--r-- | src/drivers/net/pnic.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/drivers/net/pnic.c b/src/drivers/net/pnic.c index d21db6e2b..d4b19778a 100644 --- a/src/drivers/net/pnic.c +++ b/src/drivers/net/pnic.c @@ -134,8 +134,10 @@ static void pnic_poll ( struct net_device *netdev ) { if ( qlen == 0 ) break; pkb = alloc_pkb ( ETH_FRAME_LEN ); - if ( ! pkb ) + if ( ! pkb ) { + printf ( "could not allocate buffer\n" ); break; + } if ( pnic_command ( pnic, PNIC_CMD_RECV, NULL, 0, pkb->data, ETH_FRAME_LEN, &length ) != PNIC_STATUS_OK ) { @@ -153,7 +155,7 @@ TRANSMIT - Transmit a frame static int pnic_transmit ( struct net_device *netdev, struct pk_buff *pkb ) { struct pnic *pnic = netdev->priv; - pnic_command ( pnic, PNIC_CMD_XMIT, pkb, pkb_len ( pkb ), + pnic_command ( pnic, PNIC_CMD_XMIT, pkb->data, pkb_len ( pkb ), NULL, 0, NULL ); free_pkb ( pkb ); return 0; |
