Update and extend netif transmit/receive flag names.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2006-03-23 10:46:28 +01:00
1 parent fed2a3f4c4
commit e12d3cd719
3 files changed
+15 -7

No files matched your search

@@ -331,7 +331,7 @@ static void net_rx_action(unsigned long unused)
if (make_rx_response(netif, id, status,
(unsigned long)skb->data & ~PAGE_MASK,
size, skb->proto_csum_valid ?
NETRXF_csum_valid : 0) &&
NETRXF_data_validated : 0) &&
(rx_notify[irq] == 0)) {
rx_notify[irq] = 1;
notify_list[notify_nr++] = irq;
@@ -811,7 +811,7 @@ static int netif_poll(struct net_device *dev, int *pbudget)
skb->len = rx->status;
skb->tail = skb->data + skb->len;
if (rx->flags & NETRXF_csum_valid)
if (rx->flags & NETRXF_data_validated)
skb->ip_summed = CHECKSUM_UNNECESSARY;
np->stats.rx_packets++;
+13 -5
View File
@@ -20,8 +20,12 @@
*/
/* Protocol checksum field is blank in the packet (hardware offload)? */
#define _NETTXF_csum_blank (0)
#define NETTXF_csum_blank (1U<<_NETTXF_csum_blank)
#define _NETTXF_csum_blank (0)
#define NETTXF_csum_blank (1U<<_NETTXF_csum_blank)
/* Packet data has been validated against protocol checksum. */
#define _NETTXF_data_validated (1)
#define NETTXF_data_validated (1U<<_NETTXF_data_validated)
typedef struct netif_tx_request {
grant_ref_t gref; /* Reference to buffer page */
@@ -41,9 +45,13 @@ typedef struct {
grant_ref_t gref; /* Reference to incoming granted frame */
} netif_rx_request_t;
/* Protocol checksum already validated (e.g., performed by hardware)? */
#define _NETRXF_csum_valid (0)
#define NETRXF_csum_valid (1U<<_NETRXF_csum_valid)
/* Packet data has been validated against protocol checksum. */
#define _NETRXF_data_validated (0)
#define NETRXF_data_validated (1U<<_NETRXF_data_validated)
/* Protocol checksum field is blank in the packet (hardware offload)? */
#define _NETRXF_csum_blank (1)
#define NETRXF_csum_blank (1U<<_NETRXF_csum_blank)
typedef struct {
uint16_t id;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.