ns_gige.cc (11263:8dcc6b40f164) ns_gige.cc (11299:72046b9b3323)
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 937 unchanged lines hidden (view full) ---

946 if (when > intrTick && intrTick != 0) {
947 DPRINTF(EthernetIntr, "don't need to schedule event...intrTick=%d\n",
948 intrTick);
949 return;
950 }
951
952 intrTick = when;
953 if (intrTick < curTick()) {
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 937 unchanged lines hidden (view full) ---

946 if (when > intrTick && intrTick != 0) {
947 DPRINTF(EthernetIntr, "don't need to schedule event...intrTick=%d\n",
948 intrTick);
949 return;
950 }
951
952 intrTick = when;
953 if (intrTick < curTick()) {
954 Debug::breakpoint();
955 intrTick = curTick();
956 }
957
958 DPRINTF(EthernetIntr, "going to schedule an interrupt for intrTick=%d\n",
959 intrTick);
960
961 if (intrEvent)
962 intrEvent->squash();

--- 757 unchanged lines hidden (view full) ---

1720 }
1721 } else if (extsts & EXTSTS_TCPPKT) {
1722 TcpPtr tcp(ip);
1723 if (tcp) {
1724 tcp->sum(0);
1725 tcp->sum(cksum(tcp));
1726 txTcpChecksums++;
1727 } else {
954 intrTick = curTick();
955 }
956
957 DPRINTF(EthernetIntr, "going to schedule an interrupt for intrTick=%d\n",
958 intrTick);
959
960 if (intrEvent)
961 intrEvent->squash();

--- 757 unchanged lines hidden (view full) ---

1719 }
1720 } else if (extsts & EXTSTS_TCPPKT) {
1721 TcpPtr tcp(ip);
1722 if (tcp) {
1723 tcp->sum(0);
1724 tcp->sum(cksum(tcp));
1725 txTcpChecksums++;
1726 } else {
1728 Debug::breakpoint();
1729 warn_once("TCPPKT set, but not UDP!\n");
1730 }
1731 }
1732 if (extsts & EXTSTS_IPPKT) {
1733 if (ip) {
1734 ip->sum(0);
1735 ip->sum(cksum(ip));
1736 txIpChecksums++;
1737 } else {
1727 warn_once("TCPPKT set, but not UDP!\n");
1728 }
1729 }
1730 if (extsts & EXTSTS_IPPKT) {
1731 if (ip) {
1732 ip->sum(0);
1733 ip->sum(cksum(ip));
1734 txIpChecksums++;
1735 } else {
1738 Debug::breakpoint();
1739 warn_once("IPPKT set, but not UDP!\n");
1740 }
1741 }
1742 }
1743
1744 txPacket->length = txPacketBufPtr - txPacket->data;
1745 // this is just because the receive can't handle a
1746 // packet bigger want to make sure

--- 737 unchanged lines hidden ---
1736 warn_once("IPPKT set, but not UDP!\n");
1737 }
1738 }
1739 }
1740
1741 txPacket->length = txPacketBufPtr - txPacket->data;
1742 // this is just because the receive can't handle a
1743 // packet bigger want to make sure

--- 737 unchanged lines hidden ---