diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-11-28 13:37:41 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-11-28 13:37:41 +0000 |
commit | f80ac920eb06e2437db01c55a0c349119391f95e (patch) | |
tree | 557ef79a8d521b5561ca78d37e422c9d7c82b475 /nuttx/net | |
parent | 66a32df5155e7669fec3544366cf23becb47de83 (diff) | |
download | px4-nuttx-f80ac920eb06e2437db01c55a0c349119391f95e.tar.gz px4-nuttx-f80ac920eb06e2437db01c55a0c349119391f95e.tar.bz2 px4-nuttx-f80ac920eb06e2437db01c55a0c349119391f95e.zip |
Make size of LPC1766 EMAC RAM configurable
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3142 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net')
-rw-r--r-- | nuttx/net/send.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/nuttx/net/send.c b/nuttx/net/send.c index 14b9cea99..b3f137376 100644 --- a/nuttx/net/send.c +++ b/nuttx/net/send.c @@ -268,13 +268,17 @@ static uint16_t send_interrupt(struct uip_driver_s *dev, void *pvconn, * then the send won't actually make it out... it will be replaced with * an ARP request. * - * NOTE: If we are actually harvesting IP addresses on incomming IP - * packets, then this check should be necessary; the MAC mapping should - * already be in the ARP table. + * NOTE 1: This could an expensive check if there are a lot of entries + * in the ARP table. Hence, we only check on the first packet -- when + * snd_sent is zero. + * + * NOTE 2: If we are actually harvesting IP addresses on incomming IP + * packets, then this check should not be necessary; the MAC mapping + * should already be in the ARP table. */ #ifndef CONFIG_NET_ARP_IPIN - if (uip_arp_find(conn->ripaddr) != NULL) + if (pstate->snd_sent != 0 || uip_arp_find(conn->ripaddr) != NULL) #endif { /* Update the amount of data sent (but not necessarily ACKed) */ |