spin_lock_bh(&limit_lock);
r->credit += (now - xchg(&r->prev, now)) * CREDITS_PER_JIFFY;
if (r->credit > r->credit_cap)
r->credit = r->credit_cap;
if (r->credit >= r->cost) {
/* We're not limited. */
r->credit -= r->cost;
spin_unlock_bh(&limit_lock);
return 1;
}
매칭작업을 수행할 때 credit이란 구조체의 변수를 쓰던데...
제가 알기로 이 파일은 패킷 전송률의 average/burst에 대한 매칭을 제공하는 것으로 알고 있습니다.