Queue decapsulated packed instead of performing direct dispatch. Some

execution pathes might hit stack limit under certain circumstances
(e.g. ng_mppc).

PR:                     kern/125314
Reported by:            Illya Klymov <ilia dot klimov at gmail dot com>
This commit is contained in:
Oleksandr Tymoshenko 2008-07-08 18:21:44 +00:00
parent 7b6942a110
commit 7156132cd9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180370
2 changed files with 2 additions and 2 deletions

View File

@ -755,7 +755,7 @@ ng_iface_rcvdata(hook_p hook, item_p item)
/* First chunk of an mbuf contains good junk */
if (harvest.point_to_point)
random_harvest(m, 16, 3, 0, RANDOM_NET);
netisr_dispatch(isr, m);
netisr_queue(isr, m);
return (0);
}

View File

@ -120,7 +120,7 @@ ngipi_rcvdata(hook_p hook, item_p item)
NGI_GET_M(item, m);
NG_FREE_ITEM(item);
netisr_dispatch(NETISR_IP, m);
netisr_queue(NETISR_IP, m);
return 0;
}